Skip to content

Update editing.{txt,jax} #2081

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
17 changes: 12 additions & 5 deletions doc/editing.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*editing.txt* For Vim バージョン 9.1. Last change: 2025 Apr 03
*editing.txt* For Vim バージョン 9.1. Last change: 2025 Jun 04


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -1326,10 +1326,17 @@ Motif上のVimでは同じ書式が使えるが、実際には1番目のパタ
フィルタは、変数 b:browsefilter を設定することでバッファ毎に設定できる。
b:browsefilter はファイルタイププラグインで設定することが一番多いだろう。
するとファイルブラウザーダイアログには現在編集中のファイルのタイプに関連した候
補が表示される。弊害: 別の種類のファイルの編集が始め辛くなる。対策は、フィルタ
の最後の項目に Windows では "All Files (*.*)\t*\n" を、他のプラットフォームで
は "All Files (*)\t*\n" を加え、ユーザーが望みのファイルにアクセスできる道を残
すことだ。
補が表示される。弊害: 別の種類のファイルの編集が始め辛くなる。これを克服するた
めに、以下を追加することができる >

All Files\t(*.*)\t*\n
<
Windows の最終フィルタとして、または >

All Files\t(*)\t*\n
<
他のプラットフォームでも、ユーザーが必要なファイルに引き続きアクセスできるよう
にする。

Vim が browsefilter をサポートしていないときにそれを設定しないようにするには、
has("browsefilter") が使える: >
Expand Down
14 changes: 10 additions & 4 deletions en/editing.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*editing.txt* For Vim version 9.1. Last change: 2025 Apr 03
*editing.txt* For Vim version 9.1. Last change: 2025 Jun 04


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -1342,9 +1342,15 @@ b:browsefilter variable. You would most likely set b:browsefilter in a
filetype plugin, so that the browse dialog would contain entries related to
the type of file you are currently editing. Disadvantage: This makes it
difficult to start editing a file of a different type. To overcome this, you
may want to add "All Files (*.*)\t*\n" as the final filter on Windows or "All
Files (*)\t*\n" on other platforms, so that the user can still access any
desired file.
may want to add >

All Files\t(*.*)\t*\n
<
as the final filter on Windows or >

All Files\t(*)\t*\n
<
on other platforms, so that the user can still access any desired file.

To avoid setting browsefilter when Vim does not actually support it, you can
use has("browsefilter"): >
Expand Down