Sunday, September 29, 2013

Re: BufEnter buggy?

Yeah, I couldn't get any definitive information from :echo/:echom either. So I did this:

autocmd BufEnter * let g:foo = expand('%')

And then I'd check the value of g:foo with :echo after switching/closing windows.

On Sunday, September 29, 2013 9:06:54 AM UTC-4, Christian Brabandt wrote:
> Hi Aaron!
>
>
>
> On Sa, 28 Sep 2013, Aaron Bohannon wrote:
>
>
>
> > (a) BufEnter isn't getting triggered after closing the last window in
>
> > a tab and ending up in a different tab. It *should* be getting
>
> > triggered, right? I mean, it gets triggered when I close a window and
>
> > end up in a different window in the same tab, so why wouldn't it get
>
> > triggered when I close a tab?
>
>
>
> Are you sure? I can't replicate it. I don't see a message when doing
>
> :au BufEnter * :echom "BufEnter triggered!"
>
> But that seems to be related to the redrawing (since the old tabpage is
>
> closed), but the event fires, nevertheless.
>
>
>
> Best,
>
> Christian
>
> --
>
> Es gibt kaum einen Menschen, von dem man nichts lernen kann.
>
> -- Chinesisches Sprichwort

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: