Yeak, preferably you should set sth as:
set backupdir=~/backup/vim
set dir=~/backup/vim/swap
set undodir=~/backup/vim/undos
set undofile
set bk
Pay attention also to the savevers plugin.
This way, you will never have files in places you donβt need, but keep the backup function.
source
share