Benji Fisher wrote:
> 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.
There is a remark about this right at ":help 'history'".
> 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?
Adding more info when :verbose is used is getting complicated. Perhaps
the line number could be added.
--
MICHAEL PALIN PLAYED: 1ST SOLDIER WITH A KEEN INTEREST IN BIRDS, DENNIS, MR
DUCK (A VILLAGE CARPENTER WHO IS ALMOST KEENER THAN
ANYONE ELSE TO BURN WITCHES), THREE-HEADED KNIGHT, SIR
GALAHAD, KING OF SWAMP CASTLE, BROTHER MAYNARD'S ROOMATE
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///