mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
runtime(doc): Update autocmd examples for command line autocompletion
In Windows [/] should be escaped [\/]: autocmd CmdlineChanged [:\/\?] call wildtrigger() This updated example works both in Linux and Windows. closes: #18262 Signed-off-by: Maxim Kim <habamax@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
b2c8848055
commit
5a9ef93b2c
@@ -1,4 +1,4 @@
|
|||||||
*cmdline.txt* For Vim version 9.1. Last change: 2025 Sep 08
|
*cmdline.txt* For Vim version 9.1. Last change: 2025 Sep 10
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -1350,7 +1350,7 @@ automatically showing a popup menu of suggestions as you type, whether
|
|||||||
searching (/ or ?) or entering commands (:).
|
searching (/ or ?) or entering commands (:).
|
||||||
|
|
||||||
A basic setup is: >
|
A basic setup is: >
|
||||||
autocmd CmdlineChanged [:/\?] call wildtrigger()
|
autocmd CmdlineChanged [:\/\?] call wildtrigger()
|
||||||
set wildmode=noselect:lastused,full
|
set wildmode=noselect:lastused,full
|
||||||
set wildoptions=pum
|
set wildoptions=pum
|
||||||
|
|
||||||
@@ -1363,8 +1363,8 @@ To retain normal command-line history navigation with <Up>/<Down>: >
|
|||||||
|
|
||||||
Options can also be applied only for specific command-lines. For
|
Options can also be applied only for specific command-lines. For
|
||||||
example, to use a shorter popup menu height only during search: >
|
example, to use a shorter popup menu height only during search: >
|
||||||
autocmd CmdlineEnter [/\?] set pumheight=8
|
autocmd CmdlineEnter [\/\?] set pumheight=8
|
||||||
autocmd CmdlineLeave [/\?] set pumheight&
|
autocmd CmdlineLeave [\/\?] set pumheight&
|
||||||
|
|
||||||
EXTRAS *fuzzy-file-picker* *live-grep*
|
EXTRAS *fuzzy-file-picker* *live-grep*
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user