diff options
author | Felipe Morales <hel.sheep@gmail.com> | 2015-06-20 15:59:25 -0300 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-07-20 03:48:33 -0400 |
commit | b4a5871809d14c9c0faa87a7a80cee8dcccff749 (patch) | |
tree | 046b70bb1ae928e1b7dac40e5d86afcdf07fd33a | |
parent | 259db27aefba280a9c154017b8e852c6d70abdfc (diff) | |
download | rneovim-b4a5871809d14c9c0faa87a7a80cee8dcccff749.tar.gz rneovim-b4a5871809d14c9c0faa87a7a80cee8dcccff749.tar.bz2 rneovim-b4a5871809d14c9c0faa87a7a80cee8dcccff749.zip |
defaults: set 'history' to 10000 by default. #2868
Note: the new history value is the max allowed.
Re: https://github.com/neovim/neovim/issues/2676
-rw-r--r-- | runtime/doc/cmdline.txt | 3 | ||||
-rw-r--r-- | runtime/doc/options.txt | 2 | ||||
-rw-r--r-- | runtime/doc/vim_diff.txt | 1 | ||||
-rw-r--r-- | src/nvim/option.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/runtime/doc/cmdline.txt b/runtime/doc/cmdline.txt index 932d230a59..85f16ca8ca 100644 --- a/runtime/doc/cmdline.txt +++ b/runtime/doc/cmdline.txt @@ -54,8 +54,7 @@ history tables: - 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: 50). +Use the 'history' option to set the number of lines that are remembered. Notes: - When you enter a command-line that is exactly the same as an older one, the old one is removed (to avoid repeated commands moving older commands out of diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 95671d68ff..bf6a0f715a 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -3514,7 +3514,7 @@ A jump table for the options with a short description can be found at |Q_op|. with the 'h' flag in 'viminfo' |viminfo-h|. *'history'* *'hi'* -'history' 'hi' number (Vim default: 50, Vi default: 0) +'history' 'hi' number (Vim default: 10000, Vi default: 0) global A history of ":" commands, and a history of previous search patterns is remembered. This option decides how many entries may be stored in diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index 02edabc944..5e6a89b7fe 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -35,6 +35,7 @@ these differences. - 'display' defaults to "lastline" - 'encoding' defaults to "utf-8" - 'formatoptions' defaults to "tcqj" +- 'history' defaults to 10000 (the maximum) - 'hlsearch' is set by default - 'incsearch' is set by default - 'langnoremap' is set by default diff --git a/src/nvim/option.c b/src/nvim/option.c index e76edcc672..e880e9aadd 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -870,7 +870,7 @@ static vimoption_T SCRIPTID_INIT}, {"history", "hi", P_NUM|P_VIM, (char_u *)&p_hi, PV_NONE, - {(char_u *)0L, (char_u *)50L} SCRIPTID_INIT}, + {(char_u *)0L, (char_u *)10000L} SCRIPTID_INIT}, {"hkmap", "hk", P_BOOL|P_VI_DEF|P_VIM, (char_u *)&p_hkmap, PV_NONE, {(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT}, |