diff options
author | Max Christian Pohle | 2021-12-24 21:51:41 +0100 |
---|---|---|
committer | Max Christian Pohle | 2021-12-24 21:51:41 +0100 |
commit | 86d6370a2aeaf85e9f7d716c682b4bb34dcfaad1 (patch) | |
tree | 1e9186dac9c02113a01cc37f038eff37278c4679 | |
parent | 463cab0af26022d8c2cad3760383bcc6f41dd57f (diff) | |
download | vim-recently-used-86d6370a2aeaf85e9f7d716c682b4bb34dcfaad1.tar.bz2 vim-recently-used-86d6370a2aeaf85e9f7d716c682b4bb34dcfaad1.zip |
fixed ms-windows support
-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 ", |