Doc: improve "on tab" example

This commit is contained in:
Marco Hinz 2019-01-14 00:30:59 +01:00
parent 888290d39a
commit 06f2f59d4f
No known key found for this signature in database
GPG key ID: 1C980A1B657B4A4F

View file

@ -1097,9 +1097,11 @@ Run Startify for each new tab!~
if has('nvim')
autocmd TabNewEntered * Startify
else
autocmd VimEnter * let t:startify_new_tab = 1
autocmd BufEnter *
\ if !exists('t:startify_new_tab') && empty(expand('%')) |
autocmd BufWinEnter *
\ if !exists('t:startify_new_tab')
\ && empty(expand('%'))
\ && empty(&l:buftype)
\ && &l:modifiable |
\ let t:startify_new_tab = 1 |
\ Startify |
\ endif