What's the easiest way to delete Vim swapfiles I've already recovered from?

Posted by Peeja on Super User See other posts from Super User or by Peeja
Published on 2012-09-27T14:47:47Z Indexed on 2012/09/27 15:40 UTC
Read the original article Hit count: 213

Filed under:
|

Sometimes Vim crashes and leaves me a swapfile. That's awesome. Then I open the file I was editing and Vim asks me if I want to recover. I do, thanks. When it's done, Vim tells me,

You may want to delete the .swp file now.

Why, yes, I do. How do I do that? I figured it would just start using the old swapfile as a swapfile again and clean it up when I quit, but that's not true. It makes a new one, cleans that one up, and when I open the file again it prompts me again to recover from the first one.

Surely I'm missing something.

© Super User or respective owner

Related posts about vim

Related posts about swap-file