Skip to content

Commit f0e69ff

Browse files
authored
Merge pull request #2051 from h-east/update-autocmd
Update autocmd.{txt,jax}
2 parents b47be1f + 8531982 commit f0e69ff

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

doc/autocmd.jax

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim バージョン 9.1. Last change: 2025 Apr 04
1+
*autocmd.txt* For Vim バージョン 9.1. Last change: 2025 Apr 21
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -404,6 +404,7 @@ Vimは以下のイベントを認識する。イベント名が大文字か小
404404
|CmdlineChanged| コマンドラインのテキストに変更が加えられた後
405405
|CmdlineEnter| カーソルがコマンドラインに移動した後
406406
|CmdlineLeave| カーソルがコマンドラインを離れる前
407+
|CmdlineLeavePre| コマンドラインを離れる準備の前
407408

408409
|InsertEnter| 挿入モードを開始したとき
409410
|InsertChange| 挿入や置換モードで<Insert>をタイプしたとき
@@ -645,6 +646,18 @@ CmdlineLeave カーソルがコマンドラインを離れる前、非イン
645646
<afile> はコマンドラインの種類を示す 1 文字に
646647
設定される。
647648
|cmdwin-char|
649+
*CmdlineLeavePre*
650+
CmdlineLeavePre コマンドラインを抜ける直前、かつ
651+
|CmdlineLeave| の前に発生する。補完情報は
652+
|CmdlineLeave| が呼び出される前にクリアされる
653+
ため、|cmdcomplete_info()| はこの情報を取得す
654+
るのに便利である。マッピングで ":" を非対話的
655+
に使用した場合に発生するが、|<Cmd>| を使用する
656+
場合は発生しない。また、CTRL-C または <Esc>
657+
入力してコマンドラインを終了した場合にも発生す
658+
る。<afile> には、コマンドラインの種類を示す 1
659+
文字が設定される。
660+
詳細は |cmdwin-char| を参照。
648661
*CmdwinEnter*
649662
CmdwinEnter Command-lineウィンドウに入った後。この特殊な
650663
ウィンドウに対してのみオプションを設定するのに

en/autocmd.txt

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim version 9.1. Last change: 2025 Apr 04
1+
*autocmd.txt* For Vim version 9.1. Last change: 2025 Apr 21
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -398,6 +398,7 @@ Name triggered by ~
398398
|CmdlineChanged| after a change was made to the command-line text
399399
|CmdlineEnter| after the cursor moves to the command line
400400
|CmdlineLeave| before the cursor leaves the command line
401+
|CmdlineLeavePre| before preparing to leave the command line
401402

402403
|InsertEnter| starting Insert mode
403404
|InsertChange| when typing <Insert> while in Insert or Replace mode
@@ -639,6 +640,18 @@ CmdlineLeave Before leaving the command line; including
639640
<afile> is set to a single character,
640641
indicating the type of command-line.
641642
|cmdwin-char|
643+
*CmdlineLeavePre*
644+
CmdlineLeavePre Just before leaving the command line, and
645+
before |CmdlineLeave|. Useful for capturing
646+
completion info with |cmdcomplete_info()|, as
647+
this information is cleared before
648+
|CmdlineLeave| is triggered. Triggered for
649+
non-interactive use of ":" in a mapping, but
650+
not when using |<Cmd>|. Also triggered when
651+
abandoning the command line by typing CTRL-C
652+
or <Esc>. <afile> is set to a single
653+
character indicating the command-line type.
654+
See |cmdwin-char| for details.
642655
*CmdwinEnter*
643656
CmdwinEnter After entering the command-line window.
644657
Useful for setting options specifically for

0 commit comments

Comments
 (0)