From cc25cd2cb78574cf187b3ac778ac6eac7e6b6c93 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 7 Aug 2025 06:32:50 +0800 Subject: [PATCH 1/2] vim-patch:bb0860a: runtime(doc): tweak option name notation further related: vim/vim#17857 closes: vim/vim#17917 https://github.com/vim/vim/commit/bb0860abc9af6a6154e08fe0c29315b934e7ec42 Co-authored-by: Hirohito Higashi --- runtime/doc/index.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/doc/index.txt b/runtime/doc/index.txt index 3cc81eb08c..4bfb8e5fd4 100644 --- a/runtime/doc/index.txt +++ b/runtime/doc/index.txt @@ -1017,7 +1017,7 @@ tag command action in Command-line editing mode ~ |c_CTRL-D| CTRL-D list completions that match the pattern in front of the cursor |c_CTRL-E| CTRL-E cursor to end of command-line -'cedit' CTRL-F default value for 'cedit': opens the +'cedit' CTRL-F default value for 'cedit': opens the command-line window; otherwise not used |c_CTRL-G| CTRL-G next match when 'incsearch' is active |c_| delete the character in front of the cursor From 654cde369d491160cd856b9e45ad4facabacfb54 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 7 Aug 2025 06:33:28 +0800 Subject: [PATCH 2/2] vim-patch:f7deb81: runtime(doc): fix typo at :h cmdline-autocompletion The '?' needs to be escaped, because the autocommand is using file-patterns (glob like) and not a regex). See :h file-pattern closes: vim/vim#17890 https://github.com/vim/vim/commit/f7deb815b0b3f326a4b3b5b983da87e46df4f477 Co-authored-by: Girish Palya --- runtime/doc/vimfn.txt | 2 +- runtime/lua/vim/_meta/vimfn.lua | 2 +- src/nvim/eval.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/doc/vimfn.txt b/runtime/doc/vimfn.txt index 2e3f582171..9dc35a7cf9 100644 --- a/runtime/doc/vimfn.txt +++ b/runtime/doc/vimfn.txt @@ -11905,7 +11905,7 @@ wildtrigger() *wildtrigger()* *cmdline-autocompletion* Example: To make the completion menu pop up automatically as you type on the command line, use: >vim - autocmd CmdlineChanged [:/?] call wildtrigger() + autocmd CmdlineChanged [:/\?] call wildtrigger() set wildmode=noselect:lastused,full wildoptions=pum < To retain normal history navigation (up/down keys): >vim diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua index a5d7c5c4ea..3fdc45eaf6 100644 --- a/runtime/lua/vim/_meta/vimfn.lua +++ b/runtime/lua/vim/_meta/vimfn.lua @@ -10837,7 +10837,7 @@ function vim.fn.wildmenumode() end --- *cmdline-autocompletion* --- Example: To make the completion menu pop up automatically as --- you type on the command line, use: >vim ---- autocmd CmdlineChanged [:/?] call wildtrigger() +--- autocmd CmdlineChanged [:/\?] call wildtrigger() --- set wildmode=noselect:lastused,full wildoptions=pum --- < --- To retain normal history navigation (up/down keys): >vim diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua index f45633e159..e38198ce59 100644 --- a/src/nvim/eval.lua +++ b/src/nvim/eval.lua @@ -13095,7 +13095,7 @@ M.funcs = { *cmdline-autocompletion* Example: To make the completion menu pop up automatically as you type on the command line, use: >vim - autocmd CmdlineChanged [:/?] call wildtrigger() + autocmd CmdlineChanged [:/\?] call wildtrigger() set wildmode=noselect:lastused,full wildoptions=pum < To retain normal history navigation (up/down keys): >vim