Skip to content

Instantly share code, notes, and snippets.

@Fitzsimmons
Created April 28, 2020 02:59
Show Gist options
  • Save Fitzsimmons/3018ddf2f7d6170c076f31cc131d7bd8 to your computer and use it in GitHub Desktop.
Save Fitzsimmons/3018ddf2f7d6170c076f31cc131d7bd8 to your computer and use it in GitHub Desktop.
Remap sublime vintage mode to ijkl
{ "keys": ["h"], "command": "enter_insert_mode", "context": [{"key": "setting.command_mode"}] },
{ "keys": ["insert"], "command": "enter_insert_mode", "context": [{"key": "setting.command_mode"}] },
{ "keys": ["H"], "command": "enter_insert_mode", "args":
{"insert_command": "vi_move_to_first_non_white_space_character"},
"context": [{"key": "setting.command_mode"}]
},
{ "keys": ["l"], "command": "set_motion", "args": {
"motion": "vi_move_by_characters_in_line",
"motion_args": {"forward": true, "extend": true, "visual": false }},
"context": [{"key": "setting.command_mode"}]
},
{ "keys": ["j"], "command": "set_motion", "args": {
"motion": "vi_move_by_characters_in_line",
"motion_args": {"forward": false, "extend": true }},
"context": [{"key": "setting.command_mode"}]
},
{ "keys": ["k"], "command": "set_motion", "args": {
"motion": "move",
"motion_args": {"by": "lines", "forward": true, "extend": true }},
"context": [{"key": "setting.command_mode"}]
},
{ "keys": ["i"], "command": "set_motion", "args": {
"motion": "move",
"motion_args": {"by": "lines", "forward": false, "extend": true }},
"context": [{"key": "setting.command_mode"}]
}
@MuseHorizon
Copy link

Thanks for posting this! Exactly the setup I was looking for.

@Fitzsimmons
Copy link
Author

You're welcome, how did you find this? I don't even remember posting it! 😆

@MuseHorizon
Copy link

Ha! I don't remember at this point. I think reddit 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment