> but I wonder is this expected behavior (if ZZ somehow special command) or bug?
> And if this is expected behavior, then where I can find list of all such
> special commands to add maps for them all?

Can’t say whether this behavior is intentional, but it is the consequence of 
the way how things are implemented. Multicharacter commands like “gg”, “ZZ” 
should be considered not like one command, but like two commands in different 
modes: first “g” enters “waiting for next character of multicharacter ‘g’ 
command” “mode”, next “g” actually does something.

Implementation really does not switch any modes, it just instead of using 
something like a list of mapping tables {builtin_commands, global_mappings, 
local_mappings} special-cases all built-ins and uses plain_vgetc function in C 
code unconditionally waiting for next character.

-- 
-- 
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/groups/opt_out.


Raspunde prin e-mail lui