Vim: Stop "existing swap file" warnings

vim

Solution

In `.vimrc` add:

set shortmess+=A

From the docs `:help shortmess`:

A don't give the "ATTENTION" message when an existing swap file is found.

Problem

I have no idea why, but it seems that no matter how I quit out of Vim, it always leaves the swap files behind. So, whenever I open that file again, I get an irritating error about an existing swap file. Every time I have to choose "delete". I really wish this would stop. Is there anything I can put in my `.vimrc` to tell it, "just delete the swap file if it exists and leave me alone?"

Original source