错误说明
是非正常退出了vim,导致的错误
错误展示
E325: ATTENTION
Found a swap file by the name "~/.local/share/nvim/swap//%home%linux%lesson9%myproc.cc.swp"
owned by:
file name:
modified:
user name:
process ID: 7634 (STILL RUNNING)
While opening file "myproc.cc"
dated:
(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 myproc.cc"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/home/.local/share/nvim/swap//%home%linux%lesson9%myproc.cc.swp"
to avoid this message.
解决错误
按照图片说明 直接删除
这个路径的文件就好了
复制如下路径 /home.../....swp
然后rm
命令删除