aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-10-14 19:28:41 +0800
committerGitHub <noreply@github.com>2023-10-14 19:28:41 +0800
commit20dacacf374d93d9bef45626d5851265d1075841 (patch)
treee7e5932d3b82c29d9210576c4210e35da30e1da1 /src
parentbcda800933f6de09392c3c91e290077952989722 (diff)
downloadrneovim-20dacacf374d93d9bef45626d5851265d1075841.tar.gz
rneovim-20dacacf374d93d9bef45626d5851265d1075841.tar.bz2
rneovim-20dacacf374d93d9bef45626d5851265d1075841.zip
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 <ychin.git@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/nvim/options.lua21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
index d5f41c5a89..ebce30809e 100644
--- a/src/nvim/options.lua
+++ b/src/nvim/options.lua
@@ -3970,8 +3970,8 @@ return {
cb = 'did_set_ignorecase',
defaults = { if_true = false },
desc = [=[
- 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|.
]=],
@@ -9568,18 +9568,21 @@ return {
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
<Left> <Right> - select previous/next match (like CTRL-P/CTRL-N)
+ <PageUp> - select a match several entries back
+ <PageDown> - select a match several entries further
+ <Up> - in filename/menu name completion: move up into
+ parent directory or parent menu.
<Down> - in filename/menu name completion: move into a
subdirectory or submenu.
<CR> - in menu completion, when the cursor is just after a
dot: move into a submenu.
- <Up> - 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 <Left> and <Right> to move the cursor instead of selecting
a different match, use this: >