Change Vim swap/backup/undo file name
I have this in my .vimrc and it names the swap files with full path names and percent signs just as you describe: ” Store swap files in fixed location, not current directory. set dir=~/.vimswap//,/var/tmp//,/tmp//,. The key is the // at the end of the directories. See this note from :help dir: For Unix and … Read more