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.:versionVIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan  2 2014 19:39:32)
.swp swap files for directories while browsing with netrw
netrw;swap file
This is probably a netrw bug. You might be able to work around by creating a file ~/.vim/after/ftplugin/netrw.vim (create non-existent directories) and put in there :set noswapfile