Felipe Morales wrote:

> This events gets triggered between TabEnter and WinEnter, and only for
> newly created tab pages. It seemed necessary because currently there is no
> easy way to handle things like
> 
> ~~~
> 
> function! NewStartifyTab(afile)
>     if exists('g:entering_tab')
>         call startify#insane_in_the_membrane()
>         unlet g:entering_tab
>     endif
> endfunction
> 
> au! TabNew * let g:entering_tab = 1
> au! BufEnter * call NewStartifyTab(expand('<afile>'))
> 
> ~~~
> 
> To set the `g:entering:tab` flag on TabEnter would force us to add some
> cumbersome logic to the NewStartifyTab function (which might not cover all
> cases).

We would also need a WinNew event then.

-- 
How To Keep A Healthy Level Of Insanity:
13. Go to a poetry recital and ask why the poems don't rhyme.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui