On 4/19/06, Thomas Adam <[EMAIL PROTECTED]> wrote:
> What I am after is to unload various things when I switch buffers.  So for
> example I sometimes run gvim.  I do a lot of work using vim-latex, and when I
> edit a .tex file in gvim, I get a load of menus that load.  That's great, but
> if I switch buffers to another file which is not a tex file, those menus are
> still visible, and that to me, is nonsensical.

How about using 'au BufLeave',
and placing the mirroring menu-deletion
commands under the 'au BufLeave' ?

    :au BufLeave *.ext ...menu-deletion-commands here...
?

Yakov

Reply via email to