Explorar el Código

Use VimLeavePre for session persistence

Marco Hinz hace 8 años
padre
commit
7f910ed436
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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