Persistent undo support, saving undo files in XDG_CACHE_HOME

This commit is contained in:
Danielle McLean 2016-11-16 10:17:55 +11:00
parent 74eedcf77a
commit e36c01d335
No known key found for this signature in database
GPG key ID: CC91589719027E94

View file

@ -59,6 +59,14 @@ else
set number set number
endif endif
if exists('+undofile')
set undofile
let &undodir = $XDG_CACHE_HOME . '/vim/undo'
if filewritable(&undodir) != 2
call mkdir(&undodir, 'p', 0700)
endif
endif
let g:airline_powerline_fonts = 1 let g:airline_powerline_fonts = 1
let g:LatexBox_Folding = 1 let g:LatexBox_Folding = 1
let g:NERDTreeHijackNetrw = 1 let g:NERDTreeHijackNetrw = 1