<span style="font-family:SimSun;color:#ffffff;background-color: rgb(0, 0, 0);">E325: ATTENTION
Found a swap file by the name ".ceshi.c.swp"
owned by: root dated: Sat Jul 4 19:51:46 2015
file name: /c/ceshi.c
modified: YES
user name: root host name: c66-WR
process ID: 2801
While opening file "ceshi.c"
dated: Sun Jul 5 12:38:54 2015
NEWER than swap file!
(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 ceshi.c"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file ".ceshi.c.swp"
to avoid this message.
Swap file ".ceshi.c.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit:</span>
用下面的命令刪除swp文件
rm .{your file name}.swp
例如:我的文件名是ceshi.c 那麼就用這樣的命令:rm .ceshi.c.swp (當然你前面也可以加-rf強制刪除)
問: (vi 一個文件時怎麼樣可以不讓它產生.swp文件?或不讓他提示【“Swap file ".文件名.swp" already exists![O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit:】)
處理方法: 打開 vi /etc/vimrc 並在末尾添加 set noswapfile 後保存退出 OK