On Tuesday, September 29, 2015 at 4:18:00 PM UTC-5, Justin M. Keyes wrote:
> You can already do this with:
> 
> echo filter(copy(v:oldfiles), 'v:val =~ "foo"')
> 
> 
> 
> I wish that people focused on exposing general mechanisms in Vim instead of 
> adding petty special cases to random features like this. v:oldfiles is 
> exposed. If filter(copy(v:oldfiles), 'v:val =~ "foo"') is not convenient 
> enough, then perhaps better list-processing facilities should be designed.
> 

The :oldfiles command isn't just for *viewing* the v:oldfiles list.

It also gives a number for each list entry, that lets you do things like :e 
#<12 to edit the 12th file in the list or :args #<2 #<4 #<6 to edit the 2nd, 
4th, and 6th file.

Your method would not allow that simple use case. This makes :oldfiles a more 
functional "most recent files" feature, and I support its inclusion.

Note however that I'll still probably stick with the MRU plugin because the 
user interface is quite a bit friendlier and it is more easily configurable. 
But I don't *need* the plugin necessarily with this feature addition.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui