65976Re: Using as a leader key breaks 'Does not trigger the InsertLeave autocommand event'
- Aug 1, 2012On Wednesday, August 1, 2012 10:25:57 AM UTC-5, mattn wrote:
> Sorry for top post. And sorry, I'm talking about this without makingI think the problem is that the OP DOESN'T want the InsertLeave autocmd to fire, so he uses <C-C> to exit insert mode. The docs say <C-C> should exit insert mode without firing the autocmd. If I understand correctly, with <C-C> as part of the LHS of a *normal mode* mapping, exiting Insert mode with <C-C> DOES trigger the autocmd.
> sure the behavour.
> I wonder why you are trying to get InsertLeave with nnoremap. I
> beleave that leader <c-c> afect to insert mode at the first. So I'm
> thinking it should be inoremap to do that.
I also confirm this behavior. I would expect that a <C-C> mapping in normal mode has no effect on behavior of insert mode, but in this case, it does.
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
- << Previous post in topic Next post in topic >>