From: Benji Fisher <[EMAIL PROTECTED]> Subject: Re: History and "set history=xx" Date: Sun, 30 Apr 2006 09:04:28 -0400
> On Sun, Apr 30, 2006 at 02:16:23PM +0200, Meino Christian Cramer wrote: > > From: "Yakov Lerner" <[EMAIL PROTECTED]> > > Subject: Re: History and "set history=xx" > > Date: Sun, 30 Apr 2006 14:41:58 +0300 > > > > > How about this. > > > (1) Add this > > > > > > echo "111111 history=".&history > > > > > > to your .vimrc right after the 'set history=100' line. > > > (2) Add this: > > > > > > echo "999999 history=".&history > > > > > > at the very end of your .vimrc. > > > (3) Restart vim. What do you see ? > > > > This is displayed: > > > > 111111 history=100 > > 999999 history=20 > > Press ENTER or type command to continue > > > > Seems that something else is fiddeling with this value... > > Are there any implicite ways to (re-)set the history count ? > > A "reset all" or something like that ? > > At this point, you should be able to finish debugging by yourself. > If a close reading of your vimrc file is not enough, you can move the > second debugging line around in your vimrc file (in a binary search > pattern, if the file is large) until you find where it changes. > > Look for shortened forms of "set history": > > /^\s*set\=\s\+hi > > and for :source'd files: > > /^\s*so > /^\s*ru > > In all cases, do not stop at the first match. > > Of course, there is also the lazy "solution": move the line > > set history=100 > > to the end of your vimrc files. > > HTH --Benji Fisher > result: set nocompatible sets set history=20 . Why this is implemented that way and why one has to debug step through his .vimrc to find out isn't obvious to me. And I fear, I am not the only one... mcc