E325: ATTENTION
Found a swap file by the name ".man.config.swp"
owned by: dc dated: Wed Nov 18 19:24:43 2015
file name: ~dc/tmp/vitest/man.config
modified: no
user name: dc host name: localhost.localdomain
process ID: 2907
While opening file "man.config"
(1) Another program may be editing the same file. If this is the case,
be careful not to end up with two different instances of the same
file when making changes. Quit, or continue with caution.
(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r man.config"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file ".man.config.swp"
to avoid this message.
Swap file ".man.config.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:
vim的恢复功能。当使用vim编辑文件的时候,vim将在被编辑的文件的目录下再新建一个名为.filename.swp的文件。如果系统因为某种原因断线,导致编辑的文件没有保存,那么这个时候这个.swp文件就发挥救援作用了。
[dc@localhost tmp]$ ls
vitest
[dc@localhost tmp]$ cd vitest/
[dc@localhost vitest]$ vim man.config //Ctrl-Z and you shall see the following prompt
[1]+ Stopped vim man.config
[dc@localhost vitest]$ kill -9 %1
[1]+ Stopped vim man.config
[dc@localhost vitest]$ ls -al .man.config.swp
-rw-------. 1 dc dc 4096 Nov 18 21:03 .man.config.swp
[1]+ Killed vim man.config
有时vim的工作被不正常中断,导致暂存盘无法通过正常流程结束。暂存文件不会消失。继续保存下来。