On Oct 11, 4:37 am, Jürgen Krämer <[email protected]> wrote:
> Hi,
>
> Lily wrote:
>
> > I use
> > set viminfo='100,:200,<50,s10,h
> > in my .vimrc to try to make vim remember more lines of commands, but
> > it doesn't work, and
> > set viminfo
> > returns '100,:200,<50,s10,h. Anyone knows why?
>
> I'm not sure, but you might have to
>
> :set history=200
>
> as well.
Yes. The 'viminfo' `:' flag determines how many commands are *saved*
to the viminfo file; the 'history' option determines how many are
*restored* upon startup. There's a bit of asymmetry here, since
'viminfo' defaults to 'history', but not the other way around. The
bottom line, as Jürgen indicates, is that you should set 'history' to
match 'viminfo' if you want to restore all the commands you save.
Brett Stahlman
>
> Regards,
> Jürgen
>
> --
> Sometimes I think the surest sign that intelligent life exists elsewhere
> in the universe is that none of it has tried to contact us. (Calvin)
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---