I'm trying to mapp jj to escape. I'm getting an error below. Fix?

“Error trying to parse settings: Unexpected trailing characters in {path}:15:1

有帮助吗?

解决方案

I think you should place your configuration code in Default (OS).sublime-keymap, not in Preferences.sublime-settings.

You can find it in Sublime Text 2/Preferences/Key Bindings - User menu.

其他提示

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

Go to Preferences -> Key Bindings - User.

enter image description here

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

[
    { "keys": ["j", "j"], "command": "exit_insert_mode",
        "context":
        [
            { "key": "setting.command_mode", "operand": false },
            { "key": "setting.is_widget", "operand": false }
        ]
    }
]
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top