
Originally Posted by
xarragon
Code:
set nobackup
set nowritebackup
set noswapfile
The above commands disables the swapfile and backup files.
Instead of disabling those options you can set them to something saner like the following:
Code:
" hide the backup and swap files
set backupdir=~/.backup/vim,.,/tmp
set directory=~/.backup/vim/swap,.,/tmp
set backupskip=/tmp/*,/private/tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*
Then you can just create a ~/.backup/vim directory. Then you won't have all those backup and swap files lying around in your code.
Bookmarks