RFE: :amap and :menu buffer

2006-11-09 Thread Benji Fisher
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

Re: vim: stack of modes (nested modes)

2006-11-09 Thread Bram Moolenaar
Yakov Lerner wrote: Vim can be in stacked-mode, like insert - c-o - :norm! is normal-mode inside-command-mode inside insert-mode. mode() function reports ony one mode, this is incompete info. It makes a difference whether we are in command-mode inside insert-mode, or in command-mode not

Re: RFE: :amap and :menu buffer

2006-11-09 Thread Bram Moolenaar
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

Re: RFE: :amap and :menu buffer

2006-11-09 Thread Nikolai Weibull
On 11/9/06, Bram Moolenaar [EMAIL PROTECTED] 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. Emacs does this, I believe. I don't think there's a noticable lag. Mind you, I don't use