diff options
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/vim-recently-used.vim | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugin/vim-recently-used.vim b/plugin/vim-recently-used.vim index 971d592..c5570fd 100644 --- a/plugin/vim-recently-used.vim +++ b/plugin/vim-recently-used.vim | |||
@@ -12,9 +12,10 @@ command! RecentlyUsed call setloclist(0, []) | |||
12 | \ | setfiletype qf | 12 | \ | setfiletype qf |
13 | \ | call setloclist(0, [], 'r', { | 13 | \ | call setloclist(0, [], 'r', { |
14 | \ 'title':'Recently used files in directory: '.getcwd(), | 14 | \ 'title':'Recently used files in directory: '.getcwd(), |
15 | \ 'items':sort(map(filter(filter(map(copy(v:oldfiles[:100]), | 15 | \ 'items':sort(map(filter(filter(mapnew(v:oldfiles[:100], |
16 | \ {_, p->expand(p)}), | 16 | \ {_, p->fnamemodify(p,':p')}), |
17 | \ 'v:val =~ "'.getcwd().'/"'), | 17 | \ "fnamemodify(v:val, ':h') ==# \'" . |
18 | \ getcwd()->fnamemodify(':p:h')."\'"), | ||
18 | \ 'filereadable(v:val)'), | 19 | \ 'filereadable(v:val)'), |
19 | \ {_, p->{'filename': p, | 20 | \ {_, p->{'filename': p, |
20 | \ 'module': printf("%s | %-*s ", | 21 | \ 'module': printf("%s | %-*s ", |