瀏覽代碼

Use VimLeavePre for session persistence

Marco Hinz 8 年之前
父節點
當前提交
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