ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

vi编辑状态被挂起怎么办?

2022-09-01 07:00:08  阅读:183  来源: 互联网

标签:name vi sage 编辑 file verify2 swp 怎么办


vi编辑状态,按下ctrl+z键后,被挂起。显示:

[2]+  Stopped                 vi verify2.sage

此时,再vi该文件,则出现错误提示:

E325: ATTENTION
Found a swap file by the name ".verify2.sage.swp"
          owned by: root   dated: Thu Sep  1 06:48:57 2022
         file name: ~root/breaking-abc/breaking-abc-master/verify2.sage
          modified: no
         user name: root   host name: VM-48-31-ubuntu
        process ID: 7100 (still running)
While opening file "verify2.sage"
             dated: Thu Sep  1 06:42:47 2022

(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 verify2.sage"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file ".verify2.sage.swp"
    to avoid this message.

Swap file ".verify2.sage.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort: 

怎么办呢?

这是程序在后台运行,在当前目录下会生成一个.swp文件。

假设你正在编辑的文件名是abc.txt,则会自动生成一个.abc.txt.swp

这是一个隐藏文件,用ls -a可以看到。直接删除这个文件就可以了。

标签:name,vi,sage,编辑,file,verify2,swp,怎么办
来源: https://www.cnblogs.com/RicL/p/16645156.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有