Hello,
I'm working at a project on a remote server. I don't want to have the swap files on the server.  I would like  all swap files for Vim (and, of course, gVim) to be saved on the specified directory. How could I do that? 
views:
169answers:
2
                +2 
                A: 
                
                
              Looks like you need to set the directory option:
http://vimdoc.sourceforge.net/htmldoc/options.html#%27directory%27
http://vimdoc.sourceforge.net/htmldoc/recover.html#swap-file
                  toolkit
                   2009-10-28 10:17:00
                
              Thanks. I found what I needed in the second link you provided: :set dir=~/tmp (I'm on linux)
                  sica07
                   2009-10-28 10:28:04