From b5f9682732a2ae140f2ed0d4087038efc205fbb5 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Sat, 21 Feb 2015 13:47:39 +0100 Subject: [PATCH] Prepend to v:oldfiles for new files too --- plugin/startify.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/startify.vim b/plugin/startify.vim index e7b206e..b019a9a 100644 --- a/plugin/startify.vim +++ b/plugin/startify.vim @@ -28,7 +28,7 @@ function! s:genesis() call startify#insane_in_the_membrane() endif endif - autocmd startify BufRead * if exists('v:oldfiles') | call insert(v:oldfiles, expand(''), 0) | endif + autocmd startify BufNewFile,BufRead * if exists('v:oldfiles') | call insert(v:oldfiles, expand(''), 0) | endif autocmd! startify VimEnter endfunction