Prevent duplicates in v:oldfiles

References #192.
This commit is contained in:
Marco Hinz 2016-03-07 13:10:45 +01:00
parent 44f876f4e9
commit 2eaa25ba57

View file

@ -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