Vim is not deleting .swp files when I quit. I am using vim in iTerm (macvim) and quitting with :q
or :wq
or :qa
. My swap files seem to be sticking around. I have had to ad *.swp *.swo *.swn
to my .gitignore which is becoming frustrating to say the least and I'm sure it's confusing my clients and coworkers. They are filling my computer with needless files. And of course I have to step through the "Swap file exists" warning every time I open a file.
I'd like swap files to delete on quit. Failing that I'd like to find some way to clean them up automatically.
What are my options for diagnosing/solving this problem?
Thanks!