On Thu, Nov 09, 2006 at 12:37:48PM -0700, Christian J. Robinson wrote: > On Thu, 9 Nov 2006, Bram Moolenaar wrote: > > > buffer-local menus are complicated. What about menus that are not > > for the current buffer, hide them? Would make jumping between > > buffers very slow. > > When I've defined menus that are only applicable to a buffer or a > filetype I've just defined autocommands that does an :amenu disable on > BufLeave and :amenu enable on BufEnter. I've found this is usually > the best compromise and in fact has some advantages; it can be > confusing and otherwise problematic to have menu items, or entire > menus--especially toplevel menus--disappear and reappear. > > - Christian
Thanks. I had forgotten about the ":menu disable" option. The disadvantage is that if I have several different file types open, each with its own top-level menu, then my menu bar will be crowded with disabled menus. --Benji Fisher