]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(doc): fix pattern problem in cmdline.txt
authorMao-Yining <mao.yining@outlook.com>
Fri, 6 Feb 2026 10:19:55 +0000 (10:19 +0000)
committerChristian Brabandt <cb@256bit.org>
Fri, 6 Feb 2026 10:19:55 +0000 (10:19 +0000)
closes: #19322

Signed-off-by: Mao-Yining <mao.yining@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/cmdline.txt

index 4c607c91792c83135e22140d004c47db8f9405f6..52c1f4f3b598e367f5108ae791abf5275e8d7fcd 100644 (file)
@@ -1,4 +1,4 @@
-*cmdline.txt*  For Vim version 9.1.  Last change: 2025 Nov 09
+*cmdline.txt*  For Vim version 9.1.  Last change: 2026 Feb 06
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -1381,10 +1381,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|.
 
                                                *cmdwin-char*
 The character used for the pattern indicates the type of command-line: