> I'm surprised that there was no answer to this post in almost two months.
>
> Yes, in Vim the only way to detect that a buffer has been entered or
> left is by means of autocommands. Since you want to take some action
> (modify the menus, which in Vim are normally global) depending on which
> buffer is current, you would have to harness some autocommand events,
> probably BufEnter and BufLeave.
>
> Best regards,
> Tony.
Thanks, Tony.
I use those 2 (plus BufHidden) autocomands to enable/disable menus
since the first letter.
Maxim.
--
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
To unsubscribe, reply using "remove me" as the subject.
No comments:
Post a Comment