From c732921dfb59edc7fd4a2941e63e3a3033636717 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Mon, 10 Sep 2018 22:50:14 +0200 Subject: [PATCH] [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. --- vim/vimrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vim/vimrc b/vim/vimrc index 691c80b..7b39e85 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -56,7 +56,9 @@ set nocompatible " | | | | | | " v v v v v v set viminfo=h,'500,<10000,s1000,/1000,:1000 - set viminfofile=~/.vim/viminfo + if has('viminfofile') + set viminfofile=~/.vim/viminfo + endif set virtualedit=block set wildignore=*.o,*.obj,*.pyc,*.exe,*.so,*.dll set wildmenu