File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 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い可能性がある。
Original file line number Diff line number Diff line change 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
16301630Note that for all systems the '/' character is used for path separator (even
16311631for 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
16341635It is possible to use | pattern | items, but they may not work as expected,
16351636because of the translation done for the above.
You can’t perform that action at this time.
0 commit comments