vi 或vim打开文件报错-Press ENTER or type command to continue
2019-05-20     loonlog     16345     0
本文目录
当在centos系统中,打开一个文件出现类似下面错误
E325: ATTENTION
Found a swap file by the name "/etc/vsftpd/.vsftpd.conf.swp"
owned by: root dated: Mon May 20 03:40:14 2019
file name: /etc/vsftpd/vsftpd.conf
modified: YES
user name: root host name: vultr.guest
process ID: 16184
While opening file "/etc/vsftpd/vsftpd.conf"
dated: Mon May 20 06:50:23 2019
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 /etc/vsftpd/vsftpd.conf"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/etc/vsftpd/.vsftpd.conf.swp"
to avoid this message.
"/etc/vsftpd/vsftpd.conf" 148L, 5454C
Press ENTER or type command to continue
这是因为之前打开过一次文件,然后连接异常退出,产生了缓存文件.vsftpd.conf.swp,当再次打开,提示已经打开过文件之类的信息,只需要删除缓存文件即可rm -rf .vsftpd.conf.swp
http://loonlog.com/2019/5/20/vi-vim-press-enter-or-type-command-to-continue/
评论列表,共 0 条评论
暂无评论