vim警告

E325: ATTENTION
Found a swap file by the name ".man.config.swp"
          owned by: dc   dated: Wed Nov 18 19:24:43 2015
         file name: ~dc/tmp/vitest/man.config
          modified: no
         user name: dc   host name: localhost.localdomain
        process ID: 2907
While opening file "man.config"

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

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

vim的恢复功能。当使用vim编辑文件的时候,vim将在被编辑的文件的目录下再新建一个名为.filename.swp的文件。如果系统因为某种原因断线,导致编辑的文件没有保存,那么这个时候这个.swp文件就发挥救援作用了。

[dc@localhost tmp]$ ls
vitest
[dc@localhost tmp]$ cd vitest/
[dc@localhost vitest]$ vim man.config  //Ctrl-Z and you shall see the following prompt  

[1]+  Stopped                 vim man.config
[dc@localhost vitest]$ kill -9 %1

[1]+  Stopped                 vim man.config
[dc@localhost vitest]$ ls -al .man.config.swp
-rw-------. 1 dc dc 4096 Nov 18 21:03 .man.config.swp
[1]+  Killed                  vim man.config

有时vim的工作被不正常中断,导致暂存盘无法通过正常流程结束。暂存文件不会消失。继续保存下来。

转载于:https://my.oschina.net/donngchao/blog/532603

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值