Reply to message «Re: ctrl-o with a mapping», sent 23:56:30 05 February 2011, Saturday by AK:
> Well, this is a normal mode mapping (nnoremap), by definition all of its
> contents should run under normal mode or not at all.
The fact that it is normal mode mapping means that {lhs} will be replaced by
{rhs} if you type {lhs} in normal mode. It never meant that it should run under
normal mode, the fact that first command is run under normal mode is just a
consequence of the fact that you press {lhs} in normal mode.
Original message:
> On 02/04/2011 03:40 PM, ZyX wrote:
> > Reply to message «Re: ctrl-o with a mapping»,
> > sent 23:21:50 04 February 2011, Friday
> > by AK:
> >
> > Try typing «<C-o>zz:call LineNums()<CR>» in insert mode (manually). You
> > will get just the same behavior as you see when you use the mapping.
> > There are some differencies between how mapping and typed text are
> > processed (and them I consider to be bugs), but you won't see them here.
>
> Well, this is a normal mode mapping (nnoremap), by definition all of its
> contents should run under normal mode or not at all. Otherwise you might
> imagine having commands that run insert mode mappings under normal mode,
> visual mode mappings under command-line mode, etc - all of which is as
> crazy as ctrl-o behaviour we're discussing. -ak
signature.asc
Description: This is a digitally signed message part.
