1
0
Fork 0
mirror of https://github.com/hcartiaux/dotfiles.git synced 2024-10-18 17:25:23 +02:00

[vim] unique names for backup/swap/undo files

This commit is contained in:
Hyacinthe Cartiaux 2015-03-06 15:03:10 +01:00
parent c3a3c89e99
commit c928a2b9bc

View file

@ -175,14 +175,14 @@ endif
" Centralize backups, swapfiles and undo history
set backup
set backupdir=$HOME/.vim/backup
set directory=$HOME/.vim/swap
set backupdir=$HOME/.vim/backup//
set directory=$HOME/.vim/swap//
set undofile
set undolevels=1000 "maximum number of changes that can be undone
set undoreload=10000 "maximum number lines to save for undo on a buffer reload
if exists("&undodir")
set undodir=$HOME/.vim/undo
set undodir=$HOME/.vim/undo//
endif
set viminfo+=n$HOME/.vim/.viminfo