vimtricks.wiki Concise Vim tricks, one at a time.

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.

Next

How do I visually select a double-quoted string including the quotes themselves?