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.
set directory=~/.vim/swap//
Set directory to control where swap files are stored. Keeps your project directories clean. Create the directory first.