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
2
2
3
3
4
4
VIMリファレンスマニュアル by Bram Moolenaar
@@ -1603,9 +1603,11 @@ Note: パスの途中だけにマッチさせ、ルートディレクトリに
1603
1603
[ch] は 'c' または 'h' にマッチ
1604
1604
[^ch] は 'c' と 'h' 以外の文字にマッチ
1605
1605
1606
- '/' という文字は、全てのシステムでパスの区切り文字に使われることに注意すること
1606
+ Note '/' という文字は、全てのシステムでパスの区切り文字に使われることに注意
1607
1607
(MS-Windowsでさえも)。これは、パターン内でバックスラッシュを使うことが難しい上
1608
- に、別々のシステムでも自動コマンドが動作するようにするためである。
1608
+ に、別々のシステムでも自動コマンドが動作するようにするためである。すべてのプ
1609
+ ラットフォームで '/' のみに一致させる (例えば、ファイル以外のパターンの場合)
1610
+ には、"\/" を使用する。
1609
1611
1610
1612
| pattern | を使うことができる。上記の翻訳が行われているため、期待通りに機能しな
1611
1613
い可能性がある。
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
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1629,7 +1629,8 @@ The pattern is interpreted like mostly used in file names:
1629
1629
1630
1630
Note that for all systems the '/' character is used for path separator (even
1631
1631
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 "\/".
1633
1634
1634
1635
It is possible to use | pattern | items, but they may not work as expected,
1635
1636
because of the translation done for the above.
You can’t perform that action at this time.
0 commit comments