Просмотр исходного кода

Use VimLeavePre for session persistence

Marco Hinz 8 лет назад
Родитель
Сommit
7f910ed436
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      plugin/startify.vim

+ 2 - 2
plugin/startify.vim

@@ -15,8 +15,8 @@ if !get(g:, 'startify_disable_at_vimenter')
 endif
 
 augroup startify
-  autocmd VimEnter * nested call s:genesis()
-  autocmd VimLeave * call s:extinction()
+  autocmd VimEnter    * nested call s:genesis()
+  autocmd VimLeavePre * nested call s:extinction()
   autocmd QuickFixCmdPre  *vimgrep* let g:startify_locked = 1
   autocmd QuickFixCmdPost *vimgrep* let g:startify_locked = 0
 augroup END