0

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

romainl
  • 186,200
  • 21
  • 280
  • 313
pachun
  • 926
  • 2
  • 10
  • 26
  • 1
    Don’t be too lazy to write down the error message here and read the markdown help. I’ve copied the former into image alt and made image show immediately not after opening the URL. – ZyX Oct 20 '12 at 09:38
  • possible duplicate of [How do I remap escape when in Sublime Text vintage mode?](http://stackoverflow.com/questions/9620812/how-do-i-remap-escape-when-in-sublime-text-vintage-mode) – davidcondrey Sep 15 '14 at 02:44

2 Answers2

2

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.

Riccardo Marotti
  • 20,218
  • 7
  • 70
  • 53
0

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 }
        ]
    }
]
davidcondrey
  • 34,416
  • 17
  • 114
  • 136