New option: g:startify_update_oldfiles

References #192.
This commit is contained in:
Marco Hinz 2016-03-07 13:21:16 +01:00
parent 2eaa25ba57
commit de709a4dbe
2 changed files with 16 additions and 3 deletions

View file

@ -42,9 +42,11 @@ 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>:p'))
if get(g:, 'startify_update_oldfiles')
call map(v:oldfiles, 'fnamemodify(v:val, ":p")')
autocmd startify BufNewFile,BufRead,BufFilePre *
\ call s:update_oldfiles(expand('<afile>:p'))
endif
autocmd! startify VimEnter
endfunction