Dave's Brain

Browse - Computer Tips - What should I do with a message like this from vim?

Date: 2014mar1
Product: vim vi

Q.  What should I do with a message like this from vim?

E325: ATTENTION Found a swap file by the name ".filename.swp" owned by: root dated: Sat Mar 1 11:03:29 2014 file name: /home/files/filename modified: no user name: myuser host name: mycomputer process ID: 19566 (still running) While opening file "filename" dated: Sat Mar 1 11:03:29 2014 (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 filename" to recover the changes (see ":help recovery"). If you did this already, delete the swap file ".filename.swp" to avoid this message. Swap file ".filename.swp" already exists! [O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort:
There used to be a (D)elete option but I guess that was too dangerous. A. If you are editing the file in another session I would recommend:
- Selecting Q(uit) here - Finding the other session and continuing to edit there Or doing a graceful exit If you can can't login to the other session... - Kill the other vim session - Select (R)recover here, exit vim - Delete the .swp file

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.