From 20dacacf374d93d9bef45626d5851265d1075841 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 14 Oct 2023 19:28:41 +0800 Subject: vim-patch:2bbd0d30eebd (#25637) runtime(doc): Improve command-line completion docs (vim/vim#13331) * Improve command-line completion docs Add more details about 'ignorecase' and its effect on cmdline completion. Make sure keys used in wildmenu are properly documented and linked in the keys' documentation entries, and in `:h index` for proper cross-referencing, as wildmenu popup is slightly different from insert-mode popup menu. * Fix docs typos https://github.com/vim/vim/commit/2bbd0d30eebdea66c0da3895e83d999ed6ad83fb Co-authored-by: Yee Cheng Chin --- runtime/lua/vim/_meta/options.lua | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'runtime/lua/vim') diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index a4e0e61248..3d4f911f96 100644 --- a/runtime/lua/vim/_meta/options.lua +++ b/runtime/lua/vim/_meta/options.lua @@ -3087,8 +3087,8 @@ vim.go.icon = vim.o.icon vim.o.iconstring = "" vim.go.iconstring = vim.o.iconstring ---- Ignore case in search patterns, completion, and when searching the tags file. ---- See also 'smartcase' and 'tagcase'. +--- Ignore case in search patterns, `cmdline-completion`, when +--- searching in the tags file, and `expr-==`. --- Can be overruled by using "\c" or "\C" in the pattern, see --- `/ignorecase`. --- @@ -7539,18 +7539,21 @@ vim.go.wic = vim.go.wildignorecase --- a completion. --- --- While the menu is active these keys have special meanings: ---- ---- CTRL-Y - accept the currently selected match and stop ---- completion. ---- CTRL-E - end completion, go back to what was there before ---- selecting a match. +--- CTRL-P - go to the previous entry +--- CTRL-N - go to the next entry --- - select previous/next match (like CTRL-P/CTRL-N) +--- - select a match several entries back +--- - select a match several entries further +--- - in filename/menu name completion: move up into +--- parent directory or parent menu. --- - in filename/menu name completion: move into a --- subdirectory or submenu. --- - in menu completion, when the cursor is just after a --- dot: move into a submenu. ---- - in filename/menu name completion: move up into ---- parent directory or parent menu. +--- CTRL-E - end completion, go back to what was there before +--- selecting a match. +--- CTRL-Y - accept the currently selected match and stop +--- completion. --- --- If you want and to move the cursor instead of selecting --- a different match, use this: -- cgit