diff --git a/doc/autocmd.jax b/doc/autocmd.jax index 378d61285..cf55e3488 100644 --- a/doc/autocmd.jax +++ b/doc/autocmd.jax @@ -1,4 +1,4 @@ -*autocmd.txt* For Vim バージョン 8.1. Last change: 2019 Sep 16 +*autocmd.txt* For Vim バージョン 8.2. Last change: 2019 Dec 17 VIMリファレンスマニュアル by Bram Moolenaar @@ -391,6 +391,7 @@ BufAdd or BufCreate バッファリストに追加されるバッファを作 か、バッファをバッファリストに追加した直後。 バッファリスト内のバッファがリネームされた直後 にも発生する。 + 起動中に作成された初期バッファでは発生しない。 イベント BufCreate は歴史上の理由で存在してい る。 NOTE: このイベントで自動コマンドが実行された @@ -1273,8 +1274,8 @@ Note: パスの途中だけにマッチさせ、ルートディレクトリに [^ch] は 'c' と 'h' 以外の文字にマッチ '/' という文字は、全てのシステムでパスの区切り文字に使われることに注意すること -(MS-DOSとOS/2でさえも)。これは、パターン内でバックスラッシュを使うことが難しい -上に、別々のシステムでも自動コマンドが動作するようにするためである。 +(MS-Windowsでさえも)。これは、パターン内でバックスラッシュを使うことが難しい上 +に、別々のシステムでも自動コマンドが動作するようにするためである。 |pattern| を使うことができる。上記の翻訳が行われているため、期待通りに機能しな い可能性がある。 diff --git a/en/autocmd.txt b/en/autocmd.txt index cfadd9ef6..e2e956777 100644 --- a/en/autocmd.txt +++ b/en/autocmd.txt @@ -1,4 +1,4 @@ -*autocmd.txt* For Vim version 8.1. Last change: 2019 Sep 16 +*autocmd.txt* For Vim version 8.2. Last change: 2019 Dec 17 VIM REFERENCE MANUAL by Bram Moolenaar @@ -387,6 +387,8 @@ BufAdd or BufCreate Just after creating a new buffer which is to the buffer list. Also used just after a buffer in the buffer list has been renamed. + Not triggered for the initial buffers created + during startup. The BufCreate event is for historic reasons. NOTE: When this autocommand is executed, the current buffer "%" may be different from the @@ -1287,8 +1289,8 @@ The pattern is interpreted like mostly used in file names: [^ch] match any character but 'c' and 'h' Note that for all systems the '/' character is used for path separator (even -MS-DOS and OS/2). This was done because the backslash is difficult to use -in a pattern and to make the autocommands portable across different systems. +for MS-Windows). This was done because the backslash is difficult to use in a +pattern and to make the autocommands portable across different systems. It is possible to use |pattern| items, but they may not work as expected, because of the translation done for the above.