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