set directory=~/tmp//,.,/var/tmp//,/tmp//
Note the trailing double slash which indicates that swap file names will include the full path, thus avoiding file name collisions.
Friday, August 21, 2009
Stop Dropbox from synchronising Vim swap files
A workaround is to change the location of swap files with the directory option. For example, add the following to your .vimrc:
No comments:
Post a Comment