Use VimLeavePre for session persistence
This commit is contained in:
parent
53c53b2444
commit
7f910ed436
|
@ -15,8 +15,8 @@ if !get(g:, 'startify_disable_at_vimenter')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
augroup startify
|
augroup startify
|
||||||
autocmd VimEnter * nested call s:genesis()
|
autocmd VimEnter * nested call s:genesis()
|
||||||
autocmd VimLeave * call s:extinction()
|
autocmd VimLeavePre * nested call s:extinction()
|
||||||
autocmd QuickFixCmdPre *vimgrep* let g:startify_locked = 1
|
autocmd QuickFixCmdPre *vimgrep* let g:startify_locked = 1
|
||||||
autocmd QuickFixCmdPost *vimgrep* let g:startify_locked = 0
|
autocmd QuickFixCmdPost *vimgrep* let g:startify_locked = 0
|
||||||
augroup END
|
augroup END
|
||||||
|
|
Loading…
Reference in a new issue