[vim] Maintain undo history between sessions

This commit is contained in:
Vladan Popovic 2019-07-31 21:26:30 +02:00
parent 525260518e
commit 2d5b6756f5

View file

@ -8,6 +8,13 @@ set omnifunc=syntaxcomplete#Complete
" unset mouse " unset mouse
set mouse= set mouse=
" Maintain undo history between sessions
if !isdirectory("/tmp/.vim-undo-dir")
call mkdir("/tmp/.vim-undo-dir", "", 0700)
endif
set undodir=/tmp/.vim-undo-dir
set undofile
" Default tab is 4 spaces " Default tab is 4 spaces
set tabstop=4 set tabstop=4
set softtabstop=4 set softtabstop=4