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:
parent
c3a3c89e99
commit
c928a2b9bc
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue