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:
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.

No comments:

Post a Comment