Hi all,
The BufWinEnter autocmd is not invoked when splitting a window.
According to the help for the BufWinEnter autocmd, this autocmd
is invoked when a buffer is displayed in a window.
For example, use the following autocmd:
au BufWinEnter * echomsg "Entering buffer " . expand("<afile>")
With the above autocmd, if you execute the following commands:
:e <somefile>
:split
The BufWinEnter autocmd is not invoked for the new window.
But if you use the following commands, then the BufWinEnter autocmd
is invoked:
:e <somefile>
:split <somefile>
- Yegappan