Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sublime Text vim (vintage) remap `jj` to exit
  • Go to Sublime Text -> Preferences -> Key Bindings and add this to your Default (OSX).sublime-keymap
[
    {
        "keys": ["j", "j"],
        "command": "_enter_normal_mode",
        "args": {
            "mode": "mode_insert"
        },
        "context": [{"key": "vi_insert_mode_aware"}]
    }
]

Other great options for exit are jk and fd

@daudahmad

This comment has been minimized.

Copy link

commented Oct 5, 2019

Thanks!

@theptrk

This comment has been minimized.

Copy link
Owner Author

commented Oct 5, 2019

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.