Why does Vim save files with a ~ extension?
I think the better solution is to place these lines in your vimrc file set backupdir=~/vimtmp//,. set directory=~/vimtmp//,. The first line is for backup files, the second line for swap files. The double slash at the end ensures that there is no conflict in case of two files having the same name, see comments (at … Read more