E325: ATTENTION: Found a swap file by the name “.FILE.swp”

You want to edit a file in the Linux operating system using the vi editor, unfortunately, below error coming

E325: ATTENTION
 Found a swap file by the name ".FILE.csv.swp"
           owned by: itsiti   dated: Fri Mar  1 04:39:56 2019
          file name: /Folder/FILE.csv
           modified: no
          user name: root   host name: hostABC
         process ID: 12345
 While opening file "FILE.csv"
              dated: Wed Nov 21 06:58:55 2018

Solution

The solution is actually, suggested together with the error,

Option (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.

Option (2) An edit session for this file crashed. If this is the case, use “:recover” or “vim -r FILE.csv” to recover the changes (see “:help recovery”). If you did this already, delete the swap file “.FILE.csv.swp” to avoid this message. “FILE.csv”

You May Also Like

Leave a Reply?