Sublime Forum

Ctrl+[ not proper alias for Escape

#1

I’m really glad to see that Ctrl+ has been added as an alias for Escape, since that’s a huge ergonomic win. However, it doesn’t seem to work quite properly like you’d expect it to coming from Vim. For example, you can’t exit searches, leave visual mode, close the command palette, or close the “go to anything” panel with it. Additionally, in command mode, by default, hitting ctrl+ still indents to the left, so hitting ctrl+ twice ends up indenting you, which isn’t quite desirable. I’ve been able to approximate it with these bindings:

[code]{ "keys": "ctrl+"], "command": "none", "context": 
	
		{"key": "setting.command_mode"}
	]
},	
{ "keys": "ctrl+"], "command": "hide_overlay", "context":
	
		{ "key": "overlay_visible", "operator": "equal", "operand": true }
	]
},
{ "keys": "ctrl+"], "command": "hide_auto_complete", "context":
	
		{ "key": "auto_complete_visible", "operator": "equal", "operand": true }
	]
},	
    { "keys": "ctrl+"], "command": "hide_panel", "context":
	
		{ "key": "panel_visible", "operator": "equal", "operand": true }
	]
},[/code]

But I think it’d be nice to see this properly implemented in the Vintage settings.

0 Likes

#2

Bit of an old thread, but I found another solution.

In File Settings - User add:

"vintage_ctrl_keys": true,

In Keybindings - User add:

{ "keys": "ctrl+"], "command": "exit_insert_mode",
    "context":
    
        { "key": "setting.vintage_ctrl_keys", "operand": true }
    ]
 },
0 Likes