Paul is on permanent record as saying: :Hi : :I there anything I can do to stop the vim 'swap file :already exists' messages?
The swap file is there because the last vim session didn't clean it up. This can be for two reasons: either it's currently open, or another vim session died unexpectedly. I can't count the times I was able to recover work that was killed by a lost connection to a server. vim -r will look for swap files and recover the session. Then delete the file, and go. To answer your question, though, I don't think there's a way to make vim ignore that a swap file already exists, and just blindly overwrite, or move it out of the way. My question to you is whether you really want that behaviour. One option would be to have your computer seek, recover and deleted swaps for you. A nice login script should do the trick. Vim -r will do the recovery, and find will hunt and destroy for you. You might also want to dump a message to yourself about recovered sessions. Hope this was somewhat useful. Greg --- -
