linux fedora版本在远程操作时断线出现这样的情况,要怎么解决

来源:百度知道 编辑:UC知道 时间:2024/06/19 18:48:32
(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 backuptoftp.sh"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file ".backuptoftp.sh.swp"
to avoid this message.

ps -e找到前一次你用的编辑器看看进程还在不在,在就kill掉
然后,如果你想恢复编辑时最后一次保存前的内容用vim -r backuptoftp.sh恢复编辑
如果你不想要修改前的东西,想从头编辑,直接删除掉.backuptoftp.sh.swp这个文件