Hi guys!
I trying write script which will be react to switching between
buffers.
Code from my config file:
augroup testgroup
au!
au BufEnter * echo 'bufenter'
au BufLeave * echo 'bufleave'
augroup END
When I open two files:
# vim bla.cpp main.c
and then execute :bnext I'll be seen two string 'bufenter' and
'bufleave' all the time while executing :bnext.
If I comment line
"au BufLeave * echo 'bufleave'
and then repeat procedure I'll be seen string 'bufenter' just one time
after first command :bnext.
I do not understand why BufEnter event not correctly triggered without
BufLeave event.
Please, give my some hints.
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---