File tree 2 files changed +36
-2
lines changed
2 files changed +36
-2
lines changed Original file line number Diff line number Diff line change 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
2
2
3
3
VIM USER MANUAL - by Bram Moolenaar
4
4
@@ -200,6 +200,23 @@ Vim を終了するたびにマークが設定されます。最新のマーク
200
200
201
201
"2" を入力して <Enter> を押し、二番目のファイルを開きます。
202
202
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
+
203
220
詳細は | :oldfiles | 、| v:oldfiles | 、| c_#< | を参照してください。
204
221
205
222
Original file line number Diff line number Diff line change 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
2
2
3
3
VIM USER MANUAL - by Bram Moolenaar
4
4
@@ -207,6 +207,23 @@ You get the same list of files as with |:oldfiles|. If you want to edit
207
207
208
208
Type "2" and press <Enter> to edit the second file.
209
209
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
+
210
227
More info at | :oldfiles | , | v:oldfiles | and | c_#< | .
211
228
212
229
You can’t perform that action at this time.
0 commit comments