报错
vim非正常关闭,再下次编辑打开文件时均为显示如下警告信息:
Swap file "test.xml.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort:
查看swp文件
ls -a 查看隐藏swp文件
恢复文件
vim -r filename恢复
删除.swp文件
rm -rf filename.swp
vim非正常关闭,再下次编辑打开文件时均为显示如下警告信息:
Swap file "test.xml.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort:
ls -a 查看隐藏swp文件
vim -r filename恢复
rm -rf filename.swp
转载于:https://www.cnblogs.com/everfight/p/vim_swp.html