Published by expire0
Posted on November 11, 2011
If you encounter the message
(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 file name”
This means the terminal crashed while you were editing the file. This can also mean someone else is modifying the file.
You can remove the message by deleting the swap file. You will notice a file name in the same directory ending with .swp