Merge pull request #643 from ldong/master

Updated vimrc
This commit is contained in:
Yan Pritzker 2015-07-30 11:24:05 -05:00
commit 4fd92891ad

2
vimrc
View File

@ -49,7 +49,7 @@ set nowb
" ================ Persistent Undo ==================
" Keep undo history across sessions, by storing in file.
" Only works all the time.
if has('persistent_undo')
if has('persistent_undo') && !isdirectory(expand('~').'/.vim/backups')
silent !mkdir ~/.vim/backups > /dev/null 2>&1
set undodir=~/.vim/backups
set undofile