On 2016-10-19, Eric Nielsen wrote:
> Got it. So the sequence is WinEnter > TabNew > TabEnter > BufEnter >
> BufWinEnter. And "%" will only reflect the "new" current filename starting at
> BufEnter.

"We" ought to document this and the sequences of other events.
Where would be a good place to put that?  In a new section, e.g.
autocmd-sequences, in autocmd.txt?  Maybe something like this?


12. Sequences of autocommand events             *autocmd-sequences*

Most Vim commands initiate a sequence of events, some of which cause
autocommand events (|autocmd-events|) to be generated as they occur.
Which autocommand events are generated in response to Vim events and
the sequence in which they occur can be confusing, yet understanding
them can be critical to getting expected results from using them.
Here are some Vim events and the resulting sequence of autocommand
events.

-  :tabnew myfile

   1.  WinEnter
       % is name of buffer in which :tabnew was executed.
   2.  TabNew
   3.  TabEnter
   4.  BufEnter
       % is name of new buffer, "myfile".
   5.  BufWinEnter


Regards,
Gary

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