File tree Expand file tree Collapse file tree 2 files changed +22
-9
lines changed Expand file tree Collapse file tree 2 files changed +22
-9
lines changed Original file line number Diff line number Diff line change 1
- *editing.txt* For Vim バージョン 9.1. Last change: 2025 Apr 03
1
+ *editing.txt* For Vim バージョン 9.1. Last change: 2025 Jun 04
2
2
3
3
4
4
VIMリファレンスマニュアル by Bram Moolenaar
@@ -1326,10 +1326,17 @@ Motif上のVimでは同じ書式が使えるが、実際には1番目のパタ
1326
1326
フィルタは、変数 b:browsefilter を設定することでバッファ毎に設定できる。
1327
1327
b:browsefilter はファイルタイププラグインで設定することが一番多いだろう。
1328
1328
するとファイルブラウザーダイアログには現在編集中のファイルのタイプに関連した候
1329
- 補が表示される。弊害: 別の種類のファイルの編集が始め辛くなる。対策は、フィルタ
1330
- の最後の項目に Windows では "All Files (*.*)\t*\n" を、他のプラットフォームで
1331
- は "All Files (*)\t*\n" を加え、ユーザーが望みのファイルにアクセスできる道を残
1332
- すことだ。
1329
+ 補が表示される。弊害: 別の種類のファイルの編集が始め辛くなる。これを克服するた
1330
+ めに、以下を追加することができる >
1331
+
1332
+ All Files\t(*.*)\t*\n
1333
+ <
1334
+ Windows の最終フィルタとして、または >
1335
+
1336
+ All Files\t(*)\t*\n
1337
+ <
1338
+ 他のプラットフォームでも、ユーザーが必要なファイルに引き続きアクセスできるよう
1339
+ にする。
1333
1340
1334
1341
Vim が browsefilter をサポートしていないときにそれを設定しないようにするには、
1335
1342
has("browsefilter") が使える: >
Original file line number Diff line number Diff line change 1
- *editing.txt* For Vim version 9.1. Last change: 2025 Apr 03
1
+ *editing.txt* For Vim version 9.1. Last change: 2025 Jun 04
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1342,9 +1342,15 @@ b:browsefilter variable. You would most likely set b:browsefilter in a
1342
1342
filetype plugin, so that the browse dialog would contain entries related to
1343
1343
the type of file you are currently editing. Disadvantage: This makes it
1344
1344
difficult to start editing a file of a different type. To overcome this, you
1345
- may want to add "All Files (*.*)\t*\n" as the final filter on Windows or "All
1346
- Files (*)\t*\n" on other platforms, so that the user can still access any
1347
- desired file.
1345
+ may want to add >
1346
+
1347
+ All Files\t(*.*)\t*\n
1348
+ <
1349
+ as the final filter on Windows or >
1350
+
1351
+ All Files\t(*)\t*\n
1352
+ <
1353
+ on other platforms, so that the user can still access any desired file.
1348
1354
1349
1355
To avoid setting browsefilter when Vim does not actually support it, you can
1350
1356
use has("browsefilter"): >
You can’t perform that action at this time.
0 commit comments