Skip to main content
formatting and minor cleanup
Source Link
Tyler Durden
  • 2.2k
  • 2
  • 23
  • 42

Is it possible to create mappings or macros based on keydown and keyup events?

For example, if you press i toyou 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)

Is it possible to create mappings or macros based on keydown and keyup events?

For example, if you press i to enter insert mode, and 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)

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)

Is it possible to create mappings or keymacrosmacros based on keydownkeydown and keyupkeyup events?

For example, if you press i then youto enter insertinsert mode, and you press esc you leave insert mode and go to normalenter 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)

Is it possible to create mappings or keymacros based on keydown and keyup events?

For example, if you press i then you enter insert mode, and you press esc you leave insert mode and go to 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)

Is it possible to create mappings or macros based on keydown and keyup events?

For example, if you press i to enter insert mode, and 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)

Source Link
Tyler Durden
  • 2.2k
  • 2
  • 23
  • 42

Create mappings/macros with keydown?

Is it possible to create mappings or keymacros based on keydown and keyup events?

For example, if you press i then you enter insert mode, and you press esc you leave insert mode and go to 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)