Hello all,

I'm probably sure this has been done before, and indeed there might already
be a script or tip available on the vim website.  If there is, kindly point
me at it,  although I am unsure what to look for.

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.

I thought I could do something like:

au BufEnter Filetype ...

But I must not be understading what's involved.  I thought that vim-latex
might set a buffer variable to detect itself.  I am unsure though whether I
am to somehow unload the latex support, etc.

Is any of this making sense?  Essentially all I am asking is for whichever
buffer I am currently in to display any GUI components (such as menus and the
like), and for when I switch to another buffer that the unload, and if that
buffer has anything to show, it does so.

I hope that makes sense.  If I can clarify any details, or provide any more
information, do let me know.

Kindly,

-- Thomas Adam


                
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

Reply via email to