comparison runtime/doc/usr_21.txt @ 35204:9e4bdd4a588f v9.1.0420

patch 9.1.0420: :browse oldfiles prompts even with single entry Commit: https://github.com/vim/vim/commit/0b0f7d6be08df5411718797043414a6391ebfda5 Author: Christian Brabandt <cb@256bit.org> Date: Sun May 19 09:11:09 2024 +0200 patch 9.1.0420: :browse oldfiles prompts even with single entry Problem: :browse oldfiles prompts even with single entry Solution: Do not prompt, but edit the file directly, also when using :filter /pat/ browse oldfiles closes: #14794 Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 19 May 2024 09:15:08 +0200
parents 4635e43f2c6f
children
comparison
equal deleted inserted replaced
35203:2fb9b3c7c2d1 35204:9e4bdd4a588f
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 VIM USER MANUAL - by Bram Moolenaar 3 VIM USER MANUAL - by Bram Moolenaar
4 4
5 Go away and come back 5 Go away and come back
6 6
205 205
206 Type number and <Enter> (empty cancels): ~ 206 Type number and <Enter> (empty cancels): ~
207 207
208 Type "2" and press <Enter> to edit the second file. 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 More info at |:oldfiles|, |v:oldfiles| and |c_#<|. 227 More info at |:oldfiles|, |v:oldfiles| and |c_#<|.
211 228
212 229
213 MOVE INFO FROM ONE VIM TO ANOTHER 230 MOVE INFO FROM ONE VIM TO ANOTHER
214 231