Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update autocmd.{txt,jax} #753

Merged
merged 3 commits into from
Dec 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions doc/autocmd.jax
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -391,6 +391,7 @@ BufAdd or BufCreate バッファリストに追加されるバッファを作
か、バッファをバッファリストに追加した直後。
バッファリスト内のバッファがリネームされた直後
にも発生する。
起動中に作成された初期バッファでは発生しない。
イベント BufCreate は歴史上の理由で存在してい
る。
NOTE: このイベントで自動コマンドが実行された
Expand Down Expand Up @@ -1273,8 +1274,8 @@ Note: パスの途中だけにマッチさせ、ルートディレクトリに
[^ch] は 'c' と 'h' 以外の文字にマッチ

'/' という文字は、全てのシステムでパスの区切り文字に使われることに注意すること
(MS-DOSとOS/2でさえも)。これは、パターン内でバックスラッシュを使うことが難しい
上に、別々のシステムでも自動コマンドが動作するようにするためである。
(MS-Windowsでさえも)。これは、パターン内でバックスラッシュを使うことが難しい上
、別々のシステムでも自動コマンドが動作するようにするためである。

|pattern| を使うことができる。上記の翻訳が行われているため、期待通りに機能しな
い可能性がある。
Expand Down
8 changes: 5 additions & 3 deletions en/autocmd.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down