~/.bashrc.swp 文件损坏

~/.bashrc.swp 文件损坏

当我打开时vi ~/.bashrc,它出现以下错误:如何修复?

E325: ATTENTION
Found a swap file by the name "~/.bashrc.swp"
          owned by: imren   dated: Thu Dec 23 00:38:57 2021
         file name: ~imren/.bashrc
          modified: YES
         user name: imren   host name: imren-Inspiron-3542
        process ID: 4467
While opening file "/home/imren/.bashrc"
             dated: Thu Dec 23 19:05:17 2021
      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 /home/imren/.bashrc"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file "/home/imren/.bashrc.swp"
    to avoid this message.
"~/.bashrc" 117 lines, 3771 characters
Press ENTER or type command to continue

相关内容