diff --git a/doc/autocmd.jax b/doc/autocmd.jax index 1901361e3..dae0508fd 100644 --- a/doc/autocmd.jax +++ b/doc/autocmd.jax @@ -1,4 +1,4 @@ -*autocmd.txt* For Vim バージョン 9.1. Last change: 2025 Mar 08 +*autocmd.txt* For Vim バージョン 9.1. Last change: 2025 Mar 12 VIMリファレンスマニュアル by Bram Moolenaar @@ -393,6 +393,7 @@ Vimは以下のイベントを認識する。イベント名が大文字か小 |TabNew| 新しいタブページを作成した後 |WinClosed| ウィンドウを閉じた後 |TabClosed| タブページを閉じた後 +|TabClosedPre| タブページを閉じる前 |WinEnter| 別のウィンドウに入った後 |WinLeave| ウィンドウから離れる前 |TabEnter| 別のタブページに入った後 @@ -1220,6 +1221,10 @@ Syntax オプション 'syntax' が設定されたとき。 |:syn-on| を参照。 *TabClosed* TabClosed タブページを閉じた後。 + *TabClosedPre* +TabClosedPre タブページを閉じる前。ウィンドウレイアウトが + ロックされ、ウィンドウのオープンおよびクローズ + が禁止される。 *TabEnter* TabEnter タブページに入った直後 |tab-page|。WinEnterが 発生した後、BufEnterが発生する前。 @@ -1327,6 +1332,10 @@ TextYankPost カレントバッファでテキストがヤンクもしくは び出された場合には発生しない。 バッファのテキストを変更することは許されていな い、|textlock| を参照。 *E1064* + また、'guioptions' または 'clipboard' に + "autoselect" が設定されているために、Vim がビ + ジュアル選択の所有者になろうとしたときにも間接 + 的にトリガーされる。 {+eval 機能付きでコンパイルされた場合のみ有効} *User* diff --git a/en/autocmd.txt b/en/autocmd.txt index 5c449589d..372d1acbc 100644 --- a/en/autocmd.txt +++ b/en/autocmd.txt @@ -1,4 +1,4 @@ -*autocmd.txt* For Vim version 9.1. Last change: 2025 Mar 08 +*autocmd.txt* For Vim version 9.1. Last change: 2025 Mar 12 VIM REFERENCE MANUAL by Bram Moolenaar @@ -387,6 +387,7 @@ Name triggered by ~ |TabNew| after creating a new tab page |WinClosed| after closing a window |TabClosed| after closing a tab page +|TabClosedPre| before closing a tab page |WinEnter| after entering another window |WinLeave| before leaving a window |TabEnter| after entering another tab page @@ -1232,6 +1233,10 @@ Syntax When the 'syntax' option has been set. The See |:syn-on|. *TabClosed* TabClosed After closing a tab page. + *TabClosedPre* +TabClosedPre Before closing a tab page. The window layout + is locked, thus opening and closing of windows + is prohibited. *TabEnter* TabEnter Just after entering a tab page. |tab-page| After triggering the WinEnter and before @@ -1346,6 +1351,10 @@ TextYankPost After text has been yanked or deleted in the called recursively. It is not allowed to change the buffer text, see |textlock|. *E1064* + Also triggered indirectly when Vim tries to + become owner of the Visual selection because + of setting "autoselect" for 'guioptions' or + 'clipboard'. {only when compiled with the +eval feature} *User*