From aa85c424ea8f1af2130e460959364e55290e9d31 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 15 Aug 2015 03:13:15 +0900 Subject: [PATCH] Reverse the order of v:oldfiles --- plugin/fzf.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index f8a11ca..7020e52 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -152,9 +152,9 @@ command! -bang -nargs=1 Locate call s:fzf({ " ------------------------------------------------------------------ function! s:all_files() return extend( - \ filter(copy(v:oldfiles), + \ filter(reverse(copy(v:oldfiles)), \ "v:val !~ 'fugitive:\\|NERD_tree\\|^/tmp/\\|.git/'"), - \ map(s:buflisted(), 'bufname(v:val)')) + \ filter(map(s:buflisted(), 'bufname(v:val)'), '!empty(v:val)')) endfunction command! -bang History call s:fzf({