Oh I see. Thank you.

On 10月12日, 下午1时28分, Jürgen Krämer <[email protected]> wrote:
> Hi,
>
> Lily schrieb:
>
>
>
>
>
> >> I'm not sure, but you might have to
> >>   :set history=200
> >> as well.
> >> Jürgen Krämer
>
> >> 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
>
> > Thank all of you, I understand and the problem has solved now.
> > It needs to set 'history' as the same time. But I still don't
> > understand why
> > things become like this. I've look into the .viminfo file, and
> > discovered
> > that only 'history' lines of commands have been saved, not the one set
> > in
> > 'viminfo'. It is not so easy to understand for me.
>
> the value of 'history' not only determines how many entries are read
> from the viminfo file on startup, but it also restricts the number of
> entries that are remembered during a Vim session. Thus even if the
> 'viminfo' option includes large values for the different history lists,
> Vim cannot save more entries than those that are kept in memory.
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to