New option: g:startify_disable_at_vimenter
This commit is contained in:
parent
446f7dbbff
commit
25af84baa0
|
@ -95,6 +95,7 @@ default values.
|
||||||
|g:startify_enable_special|
|
|g:startify_enable_special|
|
||||||
|g:startify_session_savevars|
|
|g:startify_session_savevars|
|
||||||
|g:startify_session_savecmds|
|
|g:startify_session_savecmds|
|
||||||
|
|g:startify_disable_at_vimenter|
|
||||||
|
|
||||||
|
|
||||||
============- *g:startify_session_dir*
|
============- *g:startify_session_dir*
|
||||||
|
@ -346,6 +347,14 @@ A hardcoded example:
|
||||||
Same as the custom header, but shown at the bottom of the startify buffer.
|
Same as the custom header, but shown at the bottom of the startify buffer.
|
||||||
|
|
||||||
|
|
||||||
|
============- *g:startify_disable_at_vimenter*
|
||||||
|
|
||||||
|
let g:startify_disable_at_vimenter = 0
|
||||||
|
|
||||||
|
Don't run Startify at Vim startup. You can still call it anytime via
|
||||||
|
:Startify.
|
||||||
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
4. Commands *startify-commands*
|
4. Commands *startify-commands*
|
||||||
|
|
||||||
|
|
|
@ -11,11 +11,13 @@ endif
|
||||||
let g:loaded_startify = 1
|
let g:loaded_startify = 1
|
||||||
|
|
||||||
augroup startify
|
augroup startify
|
||||||
|
if !get(g:, 'startify_disable_at_vimenter')
|
||||||
autocmd VimEnter *
|
autocmd VimEnter *
|
||||||
\ if !argc() && (line2byte('$') == -1) && (v:progname =~? '^[gm]\=vimx\=\%[\.exe]$') |
|
\ if !argc() && (line2byte('$') == -1) && (v:progname =~? '^[gm]\=vimx\=\%[\.exe]$') |
|
||||||
\ call startify#insane_in_the_membrane() |
|
\ call startify#insane_in_the_membrane() |
|
||||||
\ endif |
|
\ endif |
|
||||||
\ autocmd! startify VimEnter
|
\ autocmd! startify VimEnter
|
||||||
|
endif
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
command! -nargs=? -bar -complete=customlist,startify#session_list SSave call startify#session_save(<f-args>)
|
command! -nargs=? -bar -complete=customlist,startify#session_list SSave call startify#session_save(<f-args>)
|
||||||
|
|
Loading…
Reference in a new issue