diff --git a/doc/autocmd.jax b/doc/autocmd.jax index a2a672686..c1b4d97ab 100644 --- a/doc/autocmd.jax +++ b/doc/autocmd.jax @@ -1,4 +1,4 @@ -*autocmd.txt* For Vim バージョン 9.1. Last change: 2024 Dec 04 +*autocmd.txt* For Vim バージョン 9.1. Last change: 2025 Feb 08 VIMリファレンスマニュアル by Bram Moolenaar @@ -1969,6 +1969,10 @@ BufReadCmd に対して自動コマンドを定義すると、クラッシュし 期しない振るまいを引き起こす可能性がある。|:finally|つきの|:try|ブロックを使っ て後で 'eventignore' を元に戻すようにすること。 +特定のウィンドウで autocmds を無期限に無効にするには、'eventignorewin' オプショ +ンを使用する。これは、ウィンドウとバッファ関連のイベントを無視する場合にのみ使 +用できる。 + *:noautocmd* *:noa* 1つのコマンドを実行する間だけ自動コマンドを無効にするには修飾子 ":noautocmd" を使う。これは後に続くコマンドを実行する間だけ、'eventignore' を "all" にセッ diff --git a/en/autocmd.txt b/en/autocmd.txt index 8a653f2be..a8f1b8b1a 100644 --- a/en/autocmd.txt +++ b/en/autocmd.txt @@ -1,4 +1,4 @@ -*autocmd.txt* For Vim version 9.1. Last change: 2024 Dec 04 +*autocmd.txt* For Vim version 9.1. Last change: 2025 Feb 08 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1992,6 +1992,9 @@ To disable autocommands for some time use the 'eventignore' option. Note that this may cause unexpected behavior, make sure you restore 'eventignore' afterwards, using a |:try| block with |:finally|. +To disable autocmds indefinitely in a specific window use the 'eventignorewin' +option. This can only be used to ignore window and buffer related events. + *:noautocmd* *:noa* To disable autocommands for just one command use the ":noautocmd" command modifier. This will set 'eventignore' to "all" for the duration of the