runtime(doc): Update autocmd examples for command line autocompletion
Commit:
https://github.com/vim/vim/commit/5a9ef93b2caeb0a7eb8838efbd992f6a9a72166c
Author: Maxim Kim <
hab...@gmail.com>
Date: Wed Sep 10 11:38:04 2025 -0400
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 <
hab...@gmail.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/runtime/doc/cmdline.txt b/runtime/doc/cmdline.txt
index 951532afc..097ad2d2d 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 <Up>/<Down>: >
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*