New option: g:startify_disable_at_vimenter

This commit is contained in:
Marco Hinz 2013-09-24 18:17:26 +02:00
parent 446f7dbbff
commit 25af84baa0
2 changed files with 16 additions and 5 deletions

View file

@ -11,11 +11,13 @@ endif
let g:loaded_startify = 1
augroup startify
autocmd VimEnter *
\ if !argc() && (line2byte('$') == -1) && (v:progname =~? '^[gm]\=vimx\=\%[\.exe]$') |
\ call startify#insane_in_the_membrane() |
\ endif |
\ autocmd! startify VimEnter
if !get(g:, 'startify_disable_at_vimenter')
autocmd VimEnter *
\ if !argc() && (line2byte('$') == -1) && (v:progname =~? '^[gm]\=vimx\=\%[\.exe]$') |
\ call startify#insane_in_the_membrane() |
\ endif |
\ autocmd! startify VimEnter
endif
augroup END
command! -nargs=? -bar -complete=customlist,startify#session_list SSave call startify#session_save(<f-args>)