Skip to content

Using jj instead of Esc

analyticd edited this page Apr 6, 2017 · 5 revisions

How to map jj to Esc in insert mode

Add the following key binding to Packages/User/Default.sublime-keymap:

[
    {
        "keys": ["j", "j"],
        "command": "_enter_normal_mode",
        "args": {
            "mode": "mode_insert"
        },
        "context": [{"key": "vi_insert_mode_aware"}]
    }
]

Alternatively, if you prefer to use Ctrl+[, then replace "j", "j" above with "ctrl+[". This key binding should work, but remapping keys while using Vintageous is generally speaking unsupported at present.

Note that this will cause problems if you ever have to enter either of the following words:

  • avijja
  • Zulhijjah

😉

Clone this wiki locally