Fix persistent undo
This commit is contained in:
parent
c47bf603ed
commit
e783b0a774
2
vimrc
2
vimrc
@ -65,7 +65,7 @@ set nowb
|
|||||||
" ================ Persistent Undo ==================
|
" ================ Persistent Undo ==================
|
||||||
" Keep undo history across sessions, by storing in file.
|
" Keep undo history across sessions, by storing in file.
|
||||||
" Only works all the time.
|
" Only works all the time.
|
||||||
if has('persistent_undo') && !isdirectory(expand('~').'/.vim/backups')
|
if has('persistent_undo') && isdirectory(expand('~').'/.vim/backups')
|
||||||
silent !mkdir ~/.vim/backups > /dev/null 2>&1
|
silent !mkdir ~/.vim/backups > /dev/null 2>&1
|
||||||
set undodir=~/.vim/backups
|
set undodir=~/.vim/backups
|
||||||
set undofile
|
set undofile
|
||||||
|
Loading…
Reference in New Issue
Block a user