vim E303错误信息解决记录

2 篇文章 0 订阅

用VIM打开一个文件时,出现一下错误信息提示:
E303: Unable to open swap file for "[No Name]", recovery impossible

在命令行模式下执行:
:help E303
输出相关信息如下:
Unable to open swap file for "{filename}", recovery impossible
 
Vim was not able to create a swap file.  You can still edit the file, but if
Vim unexpected exits the changes will be lost.  And Vim may consume a lot of
memory when editing a big file.  You may want to change the 'directory' option
to avoid this error.  See |swap-file|.

继续在命令行模式下执行:
:set directory?
输出相关信息如下:
directory=~/.vim/backups

问题原来如此,在~/.vim/目录下没有backups目录vim <wbr>E303错误信息解决记录

mkdir ~/.vim/backups

重试错误提示信息果然消失~

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值