How do you configure backup file locations in Vim?
Answer
set backupdir=~/.vim/backup//
Explanation
Set backupdir to a specific directory to avoid cluttering your project. The // at the end uses full path names to avoid collisions.
set backupdir=~/.vim/backup//
Set backupdir to a specific directory to avoid cluttering your project. The // at the end uses full path names to avoid collisions.