vim E303错误信息解决记录
用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目录
mkdir ~/.vim/backups
重试错误提示信息果然消失~
相关推荐
lerdor 2020-10-14
linzb 2020-09-22
HeronLinuxampARM 2020-09-14
CoderMannul 2020-09-07
lerdor 2020-08-31
ZZBAIFFA 2020-08-31
yonggeno 2020-08-18
yhuihon 2020-08-17
涅磐 2020-08-11
yhuihon 2020-08-09
zhangxl0 2020-07-28
yhuihon 2020-07-26
想个标题偏头痛 2020-07-19
老甘的可读区 2020-07-18
linzb 2020-07-18
xlb 2020-07-12
老甘的可读区 2020-07-09
極愛 2020-07-06