FAQ: Run Startify for each new tab!

References #139
This commit is contained in:
Marco Hinz 2018-04-03 13:04:08 +02:00
parent 87861176ca
commit 113655717e
No known key found for this signature in database
GPG key ID: 1C980A1B657B4A4F

View file

@ -845,6 +845,7 @@ FAQ *startify-faq*
|startify-faq-14| NERDTree with NERDTreeTabs does not work in gvim!
|startify-faq-15| Startify is cluttered with help files!
|startify-faq-16| How to disable single mappings?
|startify-faq-17| Run Startify for each new tab!
------------------------------------------------------------------------------
*startify-faq-01*
@ -1059,6 +1060,21 @@ Use |startify-autocmd|:
autocmd User Startified for key in ['b','s','t','v'] |
\ execute 'nunmap <buffer>' key | endfor
<
------------------------------------------------------------------------------
*startify-faq-17*
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('%')) |
\ let t:startify_new_tab = 1 |
\ Startify |
\ endif
endif
<
==============================================================================
EXAMPLE *startify-example*
>