Skip to content

Instantly share code, notes, and snippets.

@mmazer
Created October 4, 2019 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmazer/2025cc288658fde6fb5ee1f77c9ea57b to your computer and use it in GitHub Desktop.
Save mmazer/2025cc288658fde6fb5ee1f77c9ea57b to your computer and use it in GitHub Desktop.
Sublime Text MacOS keybindings
[
// Vintage
{ "keys": ["ctrl+["],
"command": "exit_insert_mode",
"context": [
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }
]
},
{ "keys": ["j","j"],
"command": "exit_insert_mode",
"context": [
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }
]
},
{ "keys": ["g", "l"], "command": "set_motion", "args": {
"motion": "vi_move_to_hard_eol",
"motion_args": {"repeat": 1, "extend": true},
"inclusive": true,
"clip_to_line": true },
"context": [{"key": "setting.command_mode"}]
},
{ "keys": ["g", "h"], "command": "set_motion", "args": {
"motion": "vi_move_to_first_non_white_space_character",
"motion_args": {"extend": true },
"clip_to_line": true },
"context": [{"key": "setting.command_mode"}]
},
{
"keys": ["g","m"],
"command": "go_line_middle",
"context": [{"key": "setting.command_mode"}]
},
{ "keys": ["super+]"], "command": "next_view"},
{ "keys": ["super+["], "command": "prev_view"},
// Origami
{ "keys": ["super+k", "k"], "command": "travel_to_pane", "args": {"direction": "up"} },
{ "keys": ["super+k", "l"], "command": "travel_to_pane", "args": {"direction": "right"} },
{ "keys": ["super+k", "j"], "command": "travel_to_pane", "args": {"direction": "down"} },
{ "keys": ["super+k", "h"], "command": "travel_to_pane", "args": {"direction": "left"} },
// LSP
{"keys": ["super+shift+k"], "command": "lsp_hover"},
{"keys": ["ctrl+d"], "command": "lsp_symbol_definition"},
{"keys": ["super+shift+r"], "command": "lsp_symbol_references"},
{ "keys": ["super+shift+h"], "command": "noop", "context": [{ "key": "lsp.signature_help", "operator": "equal", "operand": 0}] },
{"keys": ["super+shift+s"], "command": "lsp_document_symbols"},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment