E325: ATTENTION
问题文件名为 f1.sh ,出现原因是未保存误操作退出,后在进行vim编辑f1.sh文件就会进行提示,解决方法
查看问题文件目录下有个同名的隐藏文件,我的为“.f1.sh.swp"
rm-f删除,如果你已经提示了几次,可能会有 .f1.sh.swj 或其他追加文件同样删除这些隐藏文件即可
看英文直接按照内容操作也可,
E325: ATTENTION
Found a swap file by the name ".f1.sh.swp"
owned by: root dated: Thu Aug 1 15:02:39 2019
file name: /f1.sh
modified: YES
user name: root host name: wang.localdomain
process ID: 10518 (still running)
While opening file “f1.sh”
dated: Thu Aug 1 14:53:48 2019
(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 f1.sh”
to recover the changes (see “:help recovery”).
提示 If you did this already, delete the swap file ".f1.sh.swp"
to avoid this message.