From: Iain Patterson Date: Mon, 10 Feb 2014 16:48:10 +0000 (+0000) Subject: Vim 5 fixes. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=6aa821a9fbf33646c1f3f77e9f97f64d7f36f31c;p=profile.git Vim 5 fixes. Trying to set viminfo+=! fails on Vim 5 if viminfo doesn't already contain a '{N} chunk. Set it to the Vim 6+ default. --- diff --git a/.vimrc b/.vimrc index 14401a6..31012c7 100644 --- a/.vimrc +++ b/.vimrc @@ -638,6 +638,11 @@ version 5.4 " Reuse windows when using sbuffer. se switchbuf=useopen +" Vim 5 requires a 'n setting for viminfo. +if ! &viminfo + se viminfo='100 +endif + " Allow persistent variable saving for localvimrc. se viminfo+=!