Skip to content

Commit e7e2d1a

Browse files
authored
Merge pull request #1551 from vim-jp/hh-update-usr_21
Update usr_21.{txt,jax}
2 parents 7c44e13 + fd678ef commit e7e2d1a

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

doc/usr_21.jax

+18-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_21.txt* For Vim バージョン 9.1. Last change: 2019 Apr 25
1+
*usr_21.txt* For Vim バージョン 9.1. Last change: 2024 May 17
22

33
VIM USER MANUAL - by Bram Moolenaar
44

@@ -200,6 +200,23 @@ Vim を終了するたびにマークが設定されます。最新のマーク
200200

201201
"2" を入力して <Enter> を押し、二番目のファイルを開きます。
202202

203+
ファイル名にパターンが含まれていることが分かっている場合は、ファイルのリストを
204+
|:filter| することもできます: >
205+
206+
:filter /resume/ :browse oldfiles
207+
<
208+
マッチするファイル名が 1 つだけの場合、Vim はプロンプトを表示せずにそのファイ
209+
ルを直接編集します。フィルターが複数のファイルにマッチする場合は、代わりにマッ
210+
チするファイルのリストの入力を求めるプロンプトが表示されます: >
211+
212+
:filter! /resume/ browse oldfiles
213+
< 1: ~/.viminfo ~
214+
3: /tmp/draft ~
215+
Type number and <Enter> (q or empty cancels): ~
216+
217+
Note: 今回は、resume にマッチしないファイルをすべて除外しました:
218+
219+
203220
詳細は |:oldfiles||v:oldfiles||c_#<| を参照してください。
204221

205222

en/usr_21.txt

+18-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_21.txt* For Vim version 9.1. Last change: 2019 Apr 25
1+
*usr_21.txt* For Vim version 9.1. Last change: 2024 May 17
22

33
VIM USER MANUAL - by Bram Moolenaar
44

@@ -207,6 +207,23 @@ You get the same list of files as with |:oldfiles|. If you want to edit
207207

208208
Type "2" and press <Enter> to edit the second file.
209209

210+
If you know that the filename contains a pattern, you can also |:filter| the
211+
list of files: >
212+
213+
:filter /resume/ :browse oldfiles
214+
<
215+
Since there is only one single matching filename, Vim will directly edit that
216+
file without prompting. If the filter matches several files, you'll get
217+
prompted for the list of matching files instead: >
218+
219+
:filter! /resume/ browse oldfiles
220+
< 1: ~/.viminfo ~
221+
3: /tmp/draft ~
222+
Type number and <Enter> (q or empty cancels): ~
223+
224+
Note: this time we filtered out all files NOT matching resume.
225+
226+
210227
More info at |:oldfiles|, |v:oldfiles| and |c_#<|.
211228

212229

0 commit comments

Comments
 (0)