Change meaning of g:startify_session_autoload

References #142.
This commit is contained in:
Marco Hinz 2015-01-08 21:42:54 +01:00
parent 832c0a65b1
commit aea086205c
3 changed files with 10 additions and 9 deletions

View file

@ -12,9 +12,13 @@ let g:loaded_startify = 1
augroup startify
if !get(g:, 'startify_disable_at_vimenter')
autocmd VimEnter *
autocmd VimEnter * nested
\ if !argc() && (line2byte('$') == -1) && (v:progname =~? '^[gmnq]\=vim\=x\=\%[\.exe]$')
\ | call startify#insane_in_the_membrane()
\ | if get(g:, 'startify_session_autoload') && filereadable('Session.vim')
\ | source Session.vim
\ | else
\ | call startify#insane_in_the_membrane()
\ | endif
\ | endif
\ | autocmd! startify VimEnter
endif