> What is 'iminsert' set to? (See its help.)
&iminsert is 1.

    lnoremap foo <Esc>:<C-u>echomsg 'lnoremap'<CR>:<C-u>echomsg
&iminsert<CR>
    noremap! foo <Esc>:<C-u>echomsg 'noremap!'<CR>:<C-u>echomsg
&iminsert<CR>

This echoes 'noremap!' and '1' to command-line.


> That's a missing feature.  I'll add it to the todo list.
Thanks!


> A bug??
>
> I always thought this was intended behaviour (given I understand the issue).

That's right, sorry.
I should have titled "Possible bug: ..." to my mail.

On May 7, 8:37 pm, Andy Wokula <[email protected]> wrote:
> Am 07.05.2010 12:59, schrieb Bram Moolenaar:
>
>
>
>
>
> > Tyru wrote:
>
> >> 1. :source below code
> >> 2. Enter insert mode
> >> 3. Press<C-^>
> >> 4. Type "bar"
> >> 5. Vim outputs "noremap!", not "lnoremap"
>
> >> --- code ---
> >> " :lmap can't remap?
> >> "
> >> " Typing "bar" outputs "noremap!", not "lnoremap".
>
> >> lnoremap foo<Esc>:<C-u>echomsg 'lnoremap'<CR>
> >> noremap! foo<Esc>:<C-u>echomsg 'noremap!'<CR>
>
> >> lmap bar foo
> >> --- code ---
>
> > I first thought that it's the order that matters, but when putting the
> > lmap last it still doesn't work.  I suppose that's a bug.
>
> A bug??
>
> I always thought this was intended behaviour (given I understand the issue).
>
> Does it make any sense to remap language-mapped keys to other language-
> mapped keys?  IMHO not.
>
> But 'lmaps' to 'imapped' keys are very useful.
>
> for example, the autoclose plugin (or any similar plugin) maps '(' in
> Insert mode.
> Now with a german key map (which contains
>      :lmap * (
> ), I want '*' to be remapped to the '(' defined by the plugin.
>
> Currently, extra work is needed, because the :loadkeymap command uses
> :lnoremap (instead of :lmap), but that's a minor issue.
>
> --
> Andy
>
> --
> 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, visithttp://www.vim.org/maillist.php

-- 
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

Raspunde prin e-mail lui