On 20 févr. 2015, at 10:32, Ingo Karkat <[email protected]> wrote:

> No, that's correct. When you type "1", Vim recognizes that the "13"
> mapping may apply, and waits for the next key. As this is "2", that
> mapping doesn't apply. (The ":imap" doesn't get in between, and no
> potential right-hand side has been produced yet; it's all still in
> limbo.) There are no other candidates, so the "1" is cleared for use,
> and only the current "2" is of concern. That one is mapped to "3",
> yielding "13".

Thanks for the explanation Ingo.

So, as i understand it, characters are "cleared for use" even if
there are more "pending" mappings that has not been applied yet.
I was a bit hoping that Vim would figure out to map
"12" -> "13" -> "42", like it would do in the case

  :imap 2 3
  :inoremap 31 42

to map "21" -> "31" -> "42".  Well, i will take it as the desired
behavior.

Alexey.

P.S. Funnily, just yesterday i was looking into the source of
your plugins to learn some vimscript :).

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui