diff options
-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, |