Handle vim -y and vim -M better

This commit is contained in:
Marco Hinz 2019-01-12 22:13:35 +01:00
parent 36db232426
commit 888290d39a
No known key found for this signature in database
GPG key ID: 1C980A1B657B4A4F
2 changed files with 4 additions and 5 deletions

View file

@ -41,10 +41,9 @@ function! startify#get_lastline() abort
endfunction
" Function: #insane_in_the_membrane {{{1
function! startify#insane_in_the_membrane() abort
function! startify#insane_in_the_membrane(on_vimenter) abort
" Handle vim -y, vim -M.
if &insertmode
\ || (!&modifiable && &buftype != 'terminal' && &filetype != 'startify')
if a:on_vimenter && (&insertmode || !&modifiable)
return
endif