diff --git a/doc/cmdline.jax b/doc/cmdline.jax index 9d4163a61..7ff4cb878 100644 --- a/doc/cmdline.jax +++ b/doc/cmdline.jax @@ -1,4 +1,4 @@ -*cmdline.txt* For Vim バージョン 9.1. Last change: 2025 Jul 21 +*cmdline.txt* For Vim バージョン 9.1. Last change: 2025 Aug 08 VIMリファレンスマニュアル by Bram Moolenaar @@ -1269,8 +1269,10 @@ Cmdwin イベントを使用してコマンドラインウィンドウ専用の これはカレントウィンドウで |i_CTRL-N| によって補完を行うよう 'complete' を設定 する。 別の例: > - :au CmdwinEnter [/?] startinsert + :au CmdwinEnter [/\?] startinsert こうすれば、コマンドラインウィンドウではVimは挿入モードに移る。 +Note: これは |file-pattern| なので、"?" をエスケープする必要がある。 +|cmdline-autocompletion| も参照。 *cmdwin-char* パターンに使われる文字は、コマンドラインの種類を表す。 diff --git a/en/cmdline.txt b/en/cmdline.txt index edc0f0fc3..e5d932a9d 100644 --- a/en/cmdline.txt +++ b/en/cmdline.txt @@ -1,4 +1,4 @@ -*cmdline.txt* For Vim version 9.1. Last change: 2025 Jul 21 +*cmdline.txt* For Vim version 9.1. Last change: 2025 Aug 08 VIM REFERENCE MANUAL by Bram Moolenaar @@ -927,7 +927,7 @@ to insert special things while typing you can use the CTRL-R command. For example, "%" stands for the current file name, while CTRL-R % inserts the current file name right away. See |c_CTRL-R|. -Note: If you want to avoid the effects of special characters in a Vim script +Note: If you want to avoid the effects of special characters in a Vim script you may want to use |fnameescape()|. Also see |`=|. @@ -1325,8 +1325,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|. *cmdwin-char* The character used for the pattern indicates the type of command-line: