How to change the folder path for swp files in Vim

Viewed 47900

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?

2 Answers
Related