From: Benji Fisher <[EMAIL PROTECTED]>
Subject: Re: History and "set history=xx"
Date: Sun, 30 Apr 2006 12:02:11 -0400
> On Sun, Apr 30, 2006 at 05:38:34PM +0200, Meino Christian Cramer wrote:
> > 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...
>
> I did not think about that. It is explained under
>
> :help 'compatible'
>
> where (among other things) you can find the warning
>
> This is a special kind of option, because when it's set or reset,
> other options are also changed as a side effect. CAREFUL: Setting or
> resetting this option can have a lot of unexpected effects: Mappings
> are interpreted in another way, undo behaves differently, etc. If you
> set this option in your vimrc file, you should probably put it at the
> very start.
>
> Bram:
>
> Would it be possible for vim to add a note, something like
>
> Last set from ~/.vimrc along with 'nocompatible'
>
> in response to
>
> :verbose set history?
>
> in this case?
>
> HTH --Benji Fisher
>
Hi,
yes, it is documented somewhere....
The problem arises from another side: If a newbie like me is stepping
through his .vimrc in search of the cause of his
"history"-problems... would it be obvious or logical to do a
help compatible
to solve problems in setting history to a certain value ?
I am sure that all features of vim are well documented. The thing is:
Will I find the needed information ? And will I know/guess the right
keyword for this task?
"helpgrep" is such a thing. It matches *everything* which mention a
certain word.
Suppose I would have still the problem with "set history" and did
a "helgrep history" therefore ... I would have gotten
twohundredandfive (205)
matches. And *NO* match would give me the correct information.
The learning curve is steep with vim. Ok, no problem. I successfully
learned other complicated things.But if it is just tidous to find
what I am trying to learn....
Dont misunderstand me here, vim folks. I still like vim. But I have
my doubts, that the help "system" is useful for /learning/. It is
more useful to re-remember things which one has already known and
forgot it just in a certain moment.
keep hacking!
mcc