|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
跟着小甲鱼老师的《带你学C带你飞》视频,创建了第一个C语言程序,使用VIM打开,却报了以下信息,好像是存在什么什么文件。我按了回车以后,正常进入了vim的界面,但无法使用语法高亮等功能,只能纯编辑文字。我进入vim的配置文件,发现语法高亮等功能是打开的。后来,我注意到以下信息的最后一行,有四个选项,有一个是delete。我删除了这个不认识的文件之后,进入vim可以正常使用语法高亮等功能了。现在我很好奇,为啥删了这个文件就解决了?有没有大神指点一下?
E325: ATTENTION
Found a swap file by the name ".test.c.swp"
owned by: root dated: Sun Jul 24 22:23:25 2022
file name: ~root/c/2/test.c
modified: YES
user name: root host name: localhost.localdomain
process ID: 2546
While opening file "test.c"
dated: Sun Jul 24 22:29:15 2022
NEWER than swap file!
(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 test.c"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file ".test.c.swp"
to avoid this message.
Swap file ".test.c.swp" already exists! |
|