From 2eaa25ba57eec50ffc0112c65a47bc7417aa6638 Mon Sep 17 00:00:00 2001 From: Marco Hinz <mh.codebro@gmail.com> Date: Mon, 7 Mar 2016 13:10:45 +0100 Subject: [PATCH] Prevent duplicates in v:oldfiles References #192. --- plugin/startify.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/startify.vim b/plugin/startify.vim index a331f81..9dd06fa 100644 --- a/plugin/startify.vim +++ b/plugin/startify.vim @@ -42,8 +42,9 @@ function! s:genesis() call startify#insane_in_the_membrane() endif endif + call map(v:oldfiles, 'fnamemodify(v:val, ":p")') autocmd startify BufNewFile,BufRead,BufFilePre * - \ call s:update_oldfiles(expand('<afile>')) + \ call s:update_oldfiles(expand('<afile>:p')) autocmd! startify VimEnter endfunction