[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:
Fernando Schauenburg 2018-09-10 22:50:14 +02:00
parent 1deacf25b4
commit c732921dfb

View file

@ -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
set viminfofile=~/.vim/viminfo if has('viminfofile')
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