Sometimes I browse around the directory of the current buffer by using :Ex
. On one of my development machines, this results in a .swp
file being created in every directory I visit.
I've checked the directory variable other machines where this doesn't seem to be the issue, and they match (directory=.,~/tmp,/var/tmp,/tmp
).
I understand that .filename.swp
files are useful for recovery and I would not like to disable swap files globally. The .filename.swp
files are correctly cleaned up when buffers are closed.
I would be OK with this behavior for directories if the files were cleaned afterwords, but they linger... eventually I run find -name ".swp" -delete
to clean them up.
:version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan 2 2014 19:39:32)