当前位置:网站首页>【E325: ATTENTION】vim编辑时报错

【E325: ATTENTION】vim编辑时报错

2022-06-24 07:07:00 Uaena_An

错误说明

是非正常退出了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命令删除
在这里插入图片描述

如果帮助到了你 ,记得留下足迹哦!

原网站

版权声明
本文为[Uaena_An]所创,转载请带上原文链接,感谢
https://blog.csdn.net/iluo12/article/details/125324974