runtime(doc): Update autocmd examples for command line autocompletion

Commit: 
https://github.com/vim/vim/commit/5a9ef93b2caeb0a7eb8838efbd992f6a9a72166c
Author: Maxim Kim <[email protected]>
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 <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

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*
 

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1uwNTL-00FrtD-VF%40256bit.org.

Raspunde prin e-mail lui