Sublime Forum

Double Tap Escape

#1

Is it possible to map esc to hit esc twice?

When I am using Vintage mode, I find myself hitting the esc twice everytime I want to go back to command because the autocomplete box also requires and esc to quit.

0 Likes

#2

Can someone help?

0 Likes

#3

[code] { “keys”: “escape”], “command”: “exit_insert_mode”,
“context”:

      { "key": "setting.command_mode", "operand": false },
      { "key": "setting.is_widget", "operand": false },
      { "key": "setting.vintage_ctrl_keys" }
  ]

}[/code]

0 Likes

#4

Thank you.

0 Likes

#5

lifesaver. this should be default behaviour!

0 Likes

#6

This is the default in NeoVintageous.

0 Likes

#7

The code from @C0D312 didn’t work for me as is, but changing the value of keys to an array (["escape"]) seemed to work:

{
	"keys": ["escape"],
	"command": "exit_insert_mode",
	"context": [
		{ "key": "setting.command_mode", "operand": false },
		{ "key": "setting.is_widget", "operand": false },
		{ "key": "setting.vintage_ctrl_keys" }
	]
}
0 Likes