Created
April 27, 2013 20:58
-
-
Save davidglivar/5474706 to your computer and use it in GitHub Desktop.
my user defined keymaps for sublime text 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ // escape | |
"keys": ["ctrl+c"], | |
"command": "exit_insert_mode", | |
"context": [ | |
{ | |
"key": "setting.command_mode", | |
"operand": false | |
}, | |
{ | |
"key": "setting.is_widget", | |
"operand": false | |
}, | |
{ | |
"key": "setting.vintage_ctrl_keys" | |
} | |
] | |
}, | |
{ // escape | |
"keys": ["ctrl+c"], | |
"command": "exit_visual_mode", | |
"context": [ | |
{ | |
"key": "setting.command_mode" | |
}, | |
{ | |
"key": "num_selections", | |
"operand": 1 | |
}, | |
{ | |
"key": "selection_empty", | |
"operator": "equal", | |
"operand": false, | |
"match_all": false | |
}, | |
{ | |
"key": "setting.vintage_ctrl_keys" | |
} | |
] | |
}, | |
{ // escape | |
"keys": ["ctrl+c"], | |
"command": "vi_cancel_current_action", | |
"context": [ | |
{ | |
"key": "setting.command_mode" | |
}, | |
{ | |
"key": "vi_has_input_state" | |
}, | |
{ | |
"key": "selection_empty", | |
"operator": "equal", | |
"operand": true, | |
"match_all": false | |
}, | |
{ | |
"key": "setting.vintage_ctrl_keys" | |
} | |
] | |
}, | |
{ // insert line before in command mode | |
"keys": ["tab"], | |
"command": "run_macro_file", | |
"context": [ | |
{ | |
"key": "setting.command_mode" | |
} | |
], | |
"args": { | |
"file": "res://Packages/Default/Add Line Before.sublime-macro" | |
} | |
}, | |
{ // shift line/block right | |
"keys": ["L"], | |
"command": "indent", | |
"context": [ | |
{ | |
"key": "setting.command_mode" | |
} | |
] | |
}, | |
{ // shift line/block left | |
"keys": ["H"], | |
"command": "unindent", | |
"context": [ | |
{ | |
"key": "setting.command_mode" | |
} | |
] | |
}, | |
{ // save | |
"keys": [",", "w"], | |
"command": "save", | |
"context": [ | |
{ | |
"key": "setting.command_mode" | |
} | |
] | |
}, | |
{ // enter visual mode | |
"keys": ["ctrl+v"], | |
"command": "enter_visual_mode", | |
"context": [ | |
{ | |
"key": "setting.command_mode" | |
} | |
] | |
}, | |
{ // move (insert mode) | |
"keys": ["ctrl+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", | |
"operand": false | |
}, | |
{ | |
"key": "setting.is_widget", | |
"operand": false | |
}, | |
{ | |
"key": "setting.vintage_ctrl_keys" | |
} | |
] | |
}, | |
{ // move (insert mode) | |
"keys": ["ctrl+h"], | |
"command": "set_motion", | |
"args": { | |
"motion": "vi_move_by_characters_in_line", | |
"motion_args": { | |
"forward": false, | |
"extend": true | |
} | |
}, | |
"context": [ | |
{ | |
"key": "setting.command_mode", | |
"operand": false | |
}, | |
{ | |
"key": "setting.is_widget", | |
"operand": false | |
}, | |
{ | |
"key": "setting.vintage_ctrl_keys" | |
} | |
] | |
}, | |
{ // move (insert mode) | |
"keys": ["ctrl+j"], | |
"command": "set_motion", | |
"args": { | |
"motion": "move", | |
"motion_args": { | |
"by": "lines", | |
"forward": true, | |
"extend": true | |
}, | |
"linewise": true | |
}, | |
"context": [ | |
{ | |
"key": "setting.command_mode", | |
"operand": false | |
}, | |
{ | |
"key": "setting.is_widget", | |
"operand": false | |
}, | |
{ | |
"key": "setting.vintage_ctrl_keys" | |
} | |
] | |
}, | |
{ // move (insert mode) | |
"keys": ["ctrl+k"], | |
"command": "set_motion", | |
"args": { | |
"motion": "move", | |
"motion_args": { | |
"by": "lines", | |
"forward": false, | |
"extend": true | |
}, | |
"linewise": true | |
}, | |
"context": [ | |
{ | |
"key": "setting.command_mode", | |
"operand": false | |
}, | |
{ | |
"key": "setting.is_widget", | |
"operand": false | |
}, | |
{ | |
"key": "setting.vintage_ctrl_keys" | |
} | |
] | |
}, | |
{ // pane left | |
"keys": ["ctrl+h"], | |
"command": "focus_neighboring_group", | |
"args": { | |
"forward": false | |
}, | |
"context": [ | |
{ | |
"key": | |
"setting.command_mode" | |
} | |
] | |
}, | |
{ // pane right | |
"keys": ["ctrl+l"], | |
"command": "focus_neighboring_group", | |
"context": [ | |
{ | |
"key": "setting.command_mode" | |
} | |
] | |
}, | |
{ // move tab right | |
"keys": ["shift+ctrl+h"], | |
"command": "move_to_neighboring_group", | |
"args": { | |
"forward": false | |
} | |
}, | |
{ // move tab left | |
"keys": ["shift+ctrl+l"], | |
"command": "move_to_neighboring_group" | |
}, | |
{ // cycle tab left | |
"keys": ["ctrl+a", "p"], | |
"command": "prev_view" | |
}, | |
{ // cycle tab right | |
"keys": ["ctrl+a", "n"], | |
"command": "next_view" | |
}, | |
{ // new tab | |
"keys": ["ctrl+a", "c"], | |
"command": "new_pane" | |
}, | |
{ // close tab | |
"keys": ["ctrl+a", "x"], | |
"command": "close_pane" | |
}, | |
{ // toggle sidebar | |
"keys": ["ctrl+n"], | |
"command": "toggle_side_bar", | |
"context": [ | |
{ | |
"key": "setting.command_mode" | |
} | |
] | |
}, | |
{ // toggle comment | |
"keys": [",", "c", "c"], | |
"command": "toggle_comment", | |
"args": { | |
"block": false | |
}, | |
"context": [ | |
{ | |
"key": "setting.command_mode" | |
} | |
] | |
}, | |
{ // navigate tree down | |
"keys": ["j"], | |
"command": "move", | |
"args": { | |
"by": "lines", | |
"forward": true | |
}, | |
"context": [ | |
{ | |
"key": "control", | |
"operand": "sidebar_tree" | |
} | |
] | |
}, | |
{ // navigate tree up | |
"keys": ["k"], | |
"command": "move", | |
"args": { | |
"by": "lines", | |
"forward": false | |
}, | |
"context": [ | |
{ | |
"key": "control", | |
"operand": "sidebar_tree" | |
} | |
] | |
}, | |
{ // close folder | |
"keys": ["h"], | |
"command": "move", | |
"args": { | |
"by": "characters", | |
"forward": false | |
}, | |
"context": [ | |
{ | |
"key": "control", | |
"operand": "sidebar_tree" | |
} | |
] | |
}, | |
{ // open folder | |
"keys": ["l"], | |
"command": "move", | |
"args": { | |
"by": "characters", | |
"forward": true | |
}, | |
"context": [ | |
{ | |
"key": "control", | |
"operand": "sidebar_tree" | |
} | |
] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
to see what commands are happening in the background, enter this into the sublime console
sublime.log_commands(True)