From: Maxim Kim Date: Wed, 10 Sep 2025 15:38:04 +0000 (-0400) Subject: runtime(doc): Update autocmd examples for command line autocompletion X-Git-Tag: v9.1.1753~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a9ef93b2caeb0a7eb8838efbd992f6a9a72166c;p=thirdparty%2Fvim.git 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 Signed-off-by: Christian Brabandt --- diff --git a/runtime/doc/cmdline.txt b/runtime/doc/cmdline.txt index 951532afc0..097ad2d2de 100644 --- a/runtime/doc/cmdline.txt +++ b/runtime/doc/cmdline.txt @@ -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 @@ -1350,7 +1350,7 @@ automatically showing a popup menu of suggestions as you type, whether searching (/ or ?) or entering commands (:). A basic setup is: > - autocmd CmdlineChanged [:/\?] call wildtrigger() + autocmd CmdlineChanged [:\/\?] call wildtrigger() set wildmode=noselect:lastused,full set wildoptions=pum @@ -1363,8 +1363,8 @@ To retain normal command-line history navigation with /: > Options can also be applied only for specific command-lines. For example, to use a shorter popup menu height only during search: > - autocmd CmdlineEnter [/\?] set pumheight=8 - autocmd CmdlineLeave [/\?] set pumheight& + autocmd CmdlineEnter [\/\?] set pumheight=8 + autocmd CmdlineLeave [\/\?] set pumheight& EXTRAS *fuzzy-file-picker* *live-grep*