From 6aa821a9fbf33646c1f3f77e9f97f64d7f36f31c Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Mon, 10 Feb 2014 16:48:10 +0000 Subject: [PATCH] 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. --- .vimrc | 5 +++++ 1 file changed, 5 insertions(+) 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+=! -- 2.7.4