guillermooo / Vintageous

Vi/Vim emulation for Sublime Text 3
http://guillermooo.bitbucket.org/Vintageous/
Other
1.64k stars 115 forks source link

Option or documentation for not binding escape to _enter_normal_mode #1049

Open pbeshai opened 8 years ago

pbeshai commented 8 years ago

When using multiple cursors, it can be annoying that escape does not get rid of them, but instead changes to command mode with multiple cursors.

The simplest way around this that I found was to put the following in my User keybindings:

{ "keys": ["escape"], "command": "single_selection", "context": [{"key": "vi_insert_mode_aware"}]},

This basically copies the command from default keybindings but uses the context as specified in the Default.sublime-keymap in Vintageous.

Prior to figuring this out, one of my main annoyances with using vim emulation in Sublime was when it would switch to command mode when I didn't want to (typically by pressing escape). I figured I would share how I fixed this problem here as some form of documentation. It might be worth adding a configuration option to Vintageous that just does not bind escape in the first place.