Change Vim Swap (.swp) files default path
I work with subversion as a version controller, and I’m a big fan of console. But it’s quite annoying to type a “svn status” and receive lots of question marks on something.swp or .sw0 . Other version control system probably suffer from this issue, unless they have recursive ignore (which, as far as I can tell, svn doesn’t)
Well, I just found Vim Tip #20, which teaches us how to change the folder path for swp files. This way, all swap files for Vim (and, of course, gVim) will be saved on the specified directory.
The comand is :
There is also “set backupdir=/path/to/dir” to move those something.rb~
Hope this helps you as much as it helped me!