vim: enabled undofiles

master
Guillaume DOTT 2012-11-06 17:06:57 +01:00
parent 92cbdb002c
commit 9f56049a8a
1 changed files with 11 additions and 0 deletions

View File

@ -71,6 +71,17 @@ set pastetoggle=<F2>
set history=100 set history=100
set undolevels=150 set undolevels=150
set undofile
if filewritable(expand("~/.vim/tmp/undo")) == 2
set undodir=$HOME/.vim/tmp/undo
else
if has("unix") || has("win32unix")
call system("mkdir $HOME/.vim/tmp/undo -p")
set undodir=$HOME/.vim/tmp/undo
endif
endif
set backup set backup
if filewritable(expand("~/.vim/tmp/backup")) == 2 if filewritable(expand("~/.vim/tmp/backup")) == 2