vim-patch:422ef98: runtime(doc): fix pattern problem in cmdline.txt (#37753)

closes: vim/vim#19322

422ef984b5

Co-authored-by: Mao-Yining <mao.yining@outlook.com>
This commit is contained in:
zeertzjq
2026-02-06 20:55:07 +08:00
committed by GitHub
parent c4f322b769
commit d2141396cd

View File

@@ -1299,10 +1299,10 @@ Example: >
:au CmdwinLeave : let &cpt = b:cpt_save
This sets 'complete' to use completion in the current window for |i_CTRL-N|.
Another example: >
:au CmdwinEnter [/\?] startinsert
:au CmdwinEnter [\/\?] startinsert
This will make Vim start in Insert mode in the command-line window.
Note: The "?" needs to be escaped, as this is a |file-pattern|. See also
|cmdline-autocompletion|.
Note: The "\" and "?" needs to be escaped, as this is a |file-pattern|.
See also |cmdline-autocompletion|.
*cmdline-char* *cmdwin-char*
The character used for the pattern indicates the type of command-line: