How to Remap Escape in Sublime Text 3’s Vintage Mode

Chris Sevilleja
💬 comments

Here is a quick tip to remap the escape key in Sublime Text 3's Vintage mode. One of the first things I learned when trying out Vim was to change out pressing esc to something else.

Here we will remap esc to jj. You can remap this to whatever you want jj is an accepted replacement.

Open Sublime Text Keybindings Settings Default (Windows).sublime-keymap

Go to Preferences -> Key Bindings - User.

Table of Contents


    Define Key Binding

    Inside your Default (Windows).sublime-keymap file, add your remap.

            { "keys": ["j", "j"], "command": "exit_insert_mode",
                    { "key": "setting.command_mode", "operand": false },
                    { "key": "setting.is_widget", "operand": false }

    Just like that you can now press jj while in insert mode and you'll return to command mode.

    Chris Sevilleja

    173 posts

    Founder of Google Developer Expert in Web Technologies. Slapping the keyboard until something good happens.