소스 검색

Prepend to v:oldfiles for new files too

Marco Hinz 11 년 전
부모
커밋
b5f9682732
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      plugin/startify.vim

+ 1 - 1
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('<afile>'), 0) | endif
+  autocmd startify BufNewFile,BufRead * if exists('v:oldfiles') | call insert(v:oldfiles, expand('<afile>'), 0) | endif
   autocmd! startify VimEnter
 endfunction