Last active
September 15, 2015 22:00
-
-
Save gmvi/bc775855ac4e1bbf07d2 to your computer and use it in GitHub Desktop.
Sublime User Keymap
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
[ | |
// The following mappings standardize certain actions across windows and mac to facilitate muscle memory | |
{ "keys": ["alt+w"], "command": "close" }, | |
{ "keys": ["alt+t"], "command": "new_file" }, | |
{ "keys": ["alt+shift+t"], "command": "reopen_last_file" }, | |
{ "keys": ["alt+y"], "command": "redo" }, | |
{ "keys": ["alt+o"], "command": "prompt_open_file" }, | |
{ "keys": ["alt+]"], "command": "indent" }, | |
{ "keys": ["alt+["], "command": "unindent" }, | |
{ "keys": ["alt+shift+]"], "command": "next_view" }, | |
{ "keys": ["alt+shift+["], "command": "prev_view" }, | |
{ "keys": ["alt+a"], "command": "select_all" }, | |
{ "keys": ["alt+s"], "command": "save" }, | |
{ "keys": ["alt+shift+s"], "command": "prompt_save_as" }, | |
{ "keys": ["alt+d"], "command": "find_under_expand" }, | |
{ "keys": ["alt+f"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} }, | |
{ "keys": ["alt+z"], "command": "undo" }, | |
{ "keys": ["alt+x"], "command": "cut" }, | |
{ "keys": ["alt+c"], "command": "copy" }, | |
{ "keys": ["alt+v"], "command": "paste" }, | |
{ "keys": ["alt+n"], "command": "new_file" }, | |
{ "keys": ["alt+/"], "command": "toggle_comment", "args": { "block": false } }, | |
{ "keys": ["alt+shift+/"], "command": "toggle_comment", "args": { "block": true } }, | |
// The following keymappings affect the way Vintage command mode is entered | |
{ "keys": ["alt+s"], "command": "chain", | |
"args": { "commands": [ ["save"], ["exit_visual_mode"], ["single_selection"] ] }, | |
"context": [ | |
{ "key": "setting.is_widget", "operand": false }, | |
] | |
}, | |
{ "keys": ["alt+s"], "command": "chain", | |
"args": { "commands": [ ["save"], ["exit_insert_mode"], ["exit_visual_mode"], ["single_selection"] ] }, | |
"context": [ | |
{ "key": "setting.is_widget", "operand": false }, | |
{ "key": "setting.command_mode", "operand": false }, | |
] | |
}, | |
{ "keys": ["escape"], "command": "chain", | |
"args": { "commands": [ ["exit_insert_mode"], ["hide_auto_complete"] ] }, | |
"context": [ | |
{ "key": "auto_complete_visible", "operator": "equal", "operand": true } | |
] | |
}, | |
// command mode keybindings | |
{ "keys": ["u"], "command": "undo", "context": [ {"key": "setting.command_mode"} ] }, | |
{ "keys": ["U"], "command": "redo", "context": [ {"key": "setting.command_mode"} ] } | |
// insert escape | |
{ "keys": ["k", "j"], "command": "exit_insert_mode", "context": [ {"key": "setting.command_mode", "operand": false}] }, | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment