Hi Walsh,
2017-1-11(Wed) 8:28:43 UTC+9 L A Walsh:
> Gary Johnson wrote:
> > :help 'history'
> >
> ---
> That's what I used to get the alternate syntax.
>
> > says, "The maximum value is 10000."
> >
> ---
> I guess it was significantly decreased in 8.x (not that I need
> it so high, just wanted to unlimit it and possible take care
> of it differently as I do my bash-history).
>
> But my :help history
> (no quotes) doesn't give a max, it says:
>
> *cmdline-history* *history*
> The command-lines that you enter are remembered in a history table. You can
> recall them with the up and down cursor keys. There are actually five
> history tables:
> - one for ':' commands
> - one for search strings
> - one for expressions
> - one for input lines, typed for the |input()| function.
> - one for debug mode commands
> These are completely separate. Each history can only be accessed when
> entering the same type of line.
> Use the '*history*' option to set the number of lines that are remembered
> (default: 20).
> ---
>
> I also tried w/quotes, and there I find:
> *'history'* *'hi'*
> 'history' 'hi' number (Vim default: 20, Vi default: 0)
> global
> {not in Vi}
> A history of ":" commands, and a history of previous search patterns
> are remembered. This option decides how many entries may be stored in
> each of these histories (see |cmdline-editing|).
> NOTE: This option is set to the Vi default value when 'compatible' is
> set and to the Vim default value when 'compatible' is reset.
> ---
> still no mention of a max.
It seems that you are referring to an old document. (At least before 7.4.335)
The change of the maximum value of 'history' was done in 7.4.336 (Jun 25 2014 !!).
Perhaps the runtime files of your Vim environment are not updated.
Tentatively, The latest document is here.
https://github.com/vim/vim/blob/master/runtime/doc/options.txt#L4065-L4074
--
Best regards,
Hirohito Higashi (a.k.a. h_east)
>
> I did look for the max but didn't find it. Clicked on the 'history' link
> (above where it says "default:20"), and that showed me
> it was a :history xxx syntax now, but when I tried that got
> that it was set to 0.
>
> The original error for my history command was:
> E474: Invalid argument: history=25000
>
> Rather than a generic "invalid argument" it might be more useful
> to say that the max lines=<somevalue>..?
>
> BTW -- I set it to '10000', and no more error message.
>
> Thanks!
> -l
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Tuesday, January 10, 2017
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment