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 inside insert mode". > Currently, with mode(), script does not know this. > > Is it possible to add function to make script aware of the > whole stack of modes vim is currently in ?
Yes. -- hundred-and-one symptoms of being an internet addict: 192. Your boss asks you to "go fer" coffee and you come up with 235 FTP sites. /// 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 ///