Benji Fisher wrote: > Maps and menus work in much the same way, and when writing a vim > script (especially an ftplugin) I like to make a menu item corresponding > to each key map that I define. Unfortunately, there are two ways that > maps and menus differ: > > 1. There is an :amenu command (and also :anoremenu), but there is no > :amap command (nor :anoremap). > > 2. I can make buffer-local maps with :map <buffer>, but :menu <buffer> > does not work. > > Both of these shortcomings can be overcome with scripting, but it > would be more convenient and more consistent if :amap and :menu <buffer> > were both implemented.
Both are in the todo list. ":amap" would not be terrible difficult to implement. buffer-local menus are complicated. What about menus that are not for the current buffer, hide them? Would make jumping between buffers very slow. -- What is the difference between a professional and an amateur? The ark was built by an amateur; professionals gave us the Titanic. /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///