diff options
author | Felipe Morales <hel.sheep@gmail.com> | 2015-06-18 17:11:51 -0300 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-06-20 14:43:51 -0400 |
commit | 6cfe98c66e1f891497b2bf5aaba8c750d3037703 (patch) | |
tree | f0449f91575a317c4e287b06dd04cac757e200c1 | |
parent | e3568364dfcb952bee2376baccc6925cc0fa7fe6 (diff) | |
download | rneovim-6cfe98c66e1f891497b2bf5aaba8c750d3037703.tar.gz rneovim-6cfe98c66e1f891497b2bf5aaba8c750d3037703.tar.bz2 rneovim-6cfe98c66e1f891497b2bf5aaba8c750d3037703.zip |
defaults: remove "i" from the default 'complete' #2854
"i" could slow down the completion.
Re: https://github.com/neovim/neovim/issues/2676
-rw-r--r-- | runtime/doc/options.txt | 2 | ||||
-rw-r--r-- | runtime/doc/vim_diff.txt | 1 | ||||
-rw-r--r-- | src/nvim/option.c | 4 |
3 files changed, 4 insertions, 3 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 13bf538d89..250050bb78 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -1529,7 +1529,7 @@ A jump table for the options with a short description can be found at |Q_op|. 'compatible' 'cp' Removed. |vim-differences| {Nvim} *'complete'* *'cpt'* *E535* -'complete' 'cpt' string (default: ".,w,b,u,t,i") +'complete' 'cpt' string (default: ".,w,b,u,t") local to buffer This option specifies how keyword completion |ins-completion| works when CTRL-P or CTRL-N are used. It is also used for whole-line diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index 54bc4fc4d8..b0cb8330e1 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -31,6 +31,7 @@ these differences. - 'autoread' is set by default - 'autoindent' is set by default. - 'backspace' defaults to "indent,eol,start" +- 'complete' doesn't include "i" - 'encoding' defaults to "utf-8" - 'formatoptions' defaults to "tcqj" - 'langnoremap' is set by default diff --git a/src/nvim/option.c b/src/nvim/option.c index 08ae9c1dda..733e7dff48 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -553,9 +553,9 @@ static vimoption_T {"compatible", "cp", P_BOOL|P_RALL, (char_u *)&p_force_off, PV_NONE, {(char_u *)TRUE, (char_u *)FALSE} SCRIPTID_INIT}, - {"complete", "cpt", P_STRING|P_ALLOCED|P_VI_DEF|P_COMMA|P_NODUP, + {"complete", "cpt", P_STRING|P_ALLOCED|P_COMMA|P_NODUP, (char_u *)&p_cpt, PV_CPT, - {(char_u *)".,w,b,u,t,i", (char_u *)0L} + {(char_u *)".,w,b,u,t,i", (char_u *)".,w,b,u,t"} SCRIPTID_INIT}, {"concealcursor","cocu", P_STRING|P_ALLOCED|P_RWIN|P_VI_DEF, VAR_WIN, PV_COCU, |