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?
How to change the folder path for swp files in Vim
51.8k Views Asked by sica07 At
2
You can set the
directory
option to the location that you want vim to store its swap files, e.g.:I use trailing double path separators because, from the help docs: