Skip to content

Commit d19be8a

Browse files
authored
Merge pull request #2305 from h-east/update-autocmd
Update autocmd.{txt,jax}
2 parents 9cc0d5f + 260af8d commit d19be8a

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

doc/autocmd.jax

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim バージョン 9.1. Last change: 2025 Sep 02
1+
*autocmd.txt* For Vim バージョン 9.1. Last change: 2025 Sep 11
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -1603,9 +1603,11 @@ Note: パスの途中だけにマッチさせ、ルートディレクトリに
16031603
[ch] は 'c' または 'h' にマッチ
16041604
[^ch] は 'c' と 'h' 以外の文字にマッチ
16051605

1606-
'/' という文字は、全てのシステムでパスの区切り文字に使われることに注意すること
1606+
Note '/' という文字は、全てのシステムでパスの区切り文字に使われることに注意
16071607
(MS-Windowsでさえも)。これは、パターン内でバックスラッシュを使うことが難しい上
1608-
に、別々のシステムでも自動コマンドが動作するようにするためである。
1608+
に、別々のシステムでも自動コマンドが動作するようにするためである。すべてのプ
1609+
ラットフォームで '/' のみに一致させる (例えば、ファイル以外のパターンの場合)
1610+
には、"\/" を使用する。
16091611

16101612
|pattern| を使うことができる。上記の翻訳が行われているため、期待通りに機能しな
16111613
い可能性がある。

en/autocmd.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim version 9.1. Last change: 2025 Sep 02
1+
*autocmd.txt* For Vim version 9.1. Last change: 2025 Sep 11
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1629,7 +1629,8 @@ The pattern is interpreted like mostly used in file names:
16291629

16301630
Note that for all systems the '/' character is used for path separator (even
16311631
for MS-Windows). This was done because the backslash is difficult to use in a
1632-
pattern and to make the autocommands portable across different systems.
1632+
pattern and to make the autocommands portable across different systems. To
1633+
only match a '/' on all platforms (e.g. in a non-file pattern), use "\/".
16331634

16341635
It is possible to use |pattern| items, but they may not work as expected,
16351636
because of the translation done for the above.

0 commit comments

Comments
 (0)