Merge pull request #406 from jeremyclement/master
Resolve error "E518: Unknown option: undofile" for vim < 7.3
This commit is contained in:
commit
bf5c99fb33
@ -1,4 +1,4 @@
|
|||||||
# set your user tokens as enivornment variables, such as ~/.secrets
|
# set your user tokens as environment variables, such as ~/.secrets
|
||||||
# See the README for examples.
|
# See the README for examples.
|
||||||
[color]
|
[color]
|
||||||
ui = true
|
ui = true
|
||||||
|
9
vimrc
9
vimrc
@ -49,10 +49,11 @@ 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')
|
||||||
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
|
||||||
|
endif
|
||||||
|
|
||||||
" ================ Indentation ======================
|
" ================ Indentation ======================
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user