[vim] check if vim has viminfofile before setting
The viminfofile is not always compiled into the available vim, leading to an error when trying to set it.
This commit is contained in:
parent
1deacf25b4
commit
c732921dfb
1 changed files with 3 additions and 1 deletions
|
@ -56,7 +56,9 @@ set nocompatible
|
||||||
" | | | | | |
|
" | | | | | |
|
||||||
" v v v v v v
|
" v v v v v v
|
||||||
set viminfo=h,'500,<10000,s1000,/1000,:1000
|
set viminfo=h,'500,<10000,s1000,/1000,:1000
|
||||||
|
if has('viminfofile')
|
||||||
set viminfofile=~/.vim/viminfo
|
set viminfofile=~/.vim/viminfo
|
||||||
|
endif
|
||||||
set virtualedit=block
|
set virtualedit=block
|
||||||
set wildignore=*.o,*.obj,*.pyc,*.exe,*.so,*.dll
|
set wildignore=*.o,*.obj,*.pyc,*.exe,*.so,*.dll
|
||||||
set wildmenu
|
set wildmenu
|
||||||
|
|
Loading…
Add table
Reference in a new issue