Is it possible to create mappings or macros based on keydown
and keyup
events?
For example, if you press i
you enter insert
mode, and if you press esc
you leave insert mode and enter normal
mode.
Could you make it so that if you pressed down i
you entered insert mode, and when you released it, you left insert mode?
(not that you would want to do that, I am just giving it as an example of behavior)