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

How do you configure swap file location in Vim?

Answer

set directory=~/.vim/swap//

Explanation

Set directory to control where swap files are stored. Keeps your project directories clean. Create the directory first.

Next

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