Felipe Morales wrote:

> at https://groups.google.com/forum/#!topic/vim_dev/Qnmdv7OLh_g/discussion I 
> proposed a new TabNew event. This is a followup to that, adding:
> 
> - a new TabNewEntered event which gets triggered after the first buffer in 
> the new tab is entered. This is equivalent to using a t: variable, but is 
> more straightforward:
> 
>      au! BufEnter * if !exists('t:new_tab') | let t:new_tab = 1 | doautocmd 
> User TabNew | endif
>      au! User TabNew :echom "new tab"
> 
> turns into
> 
>     au! TabNewEntered * echom "new tab"
>  
> - a TabClosed event which gets triggered after a tab is closed.
> 
> TabClosed uses the closed tab page number as <afile>, so we can trigger the 
> event when a specific tab page is closed.
> 
> Bram asked it it was possible to add WinEnter events too, and I think
> it is, but I haven't been able to take the time to implement that, so
> for now I'm limiting myself to this.

Thanks for the patch!


-- 
"Hit any key to continue" it said, but nothing happened after F sharp.

 /// 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