vim on windows 10 using
chocolatey. When I edit a
foo file in
vim leaves behind
.foo~ files. What are these and how do I stop
vim from leaving them around?
powershell, create the following directories:
~/.vim ~/.vim/.undo ~/.vim/.backup ~/.vim/.swp
.vimrc file by opening vim and typing:
Then, add the following lines, and save:
set undodir=~/.vim/.undo// set backupdir=~/.vim/.backup// set directory=~/.vim/.swp//
vim will now put your
swap files in the
~/.vim/.swp directories, respectively.