Skip to content

Instantly share code, notes, and snippets.

@zeroasterisk
Created March 23, 2012 15:22
Show Gist options
  • Select an option

  • Save zeroasterisk/2171723 to your computer and use it in GitHub Desktop.

Select an option

Save zeroasterisk/2171723 to your computer and use it in GitHub Desktop.
Sublime Text 2 - User Keybindings
[
// plugins
{ "keys": ["ctrl+shift+t"], "command": "whitespacecorrector" },
{ "keys": ["ctrl+x"], "command": "clipboard_manager_cut" },
{ "keys": ["ctrl+c"], "command": "clipboard_manager_copy" },
{ "keys": ["ctrl+v"], "command": "clipboard_manager_paste", "args": { "indent": true } },
{ "keys": ["ctrl+alt+v"], "command": "clipboard_manager_paste", "args": { "indent": false } },
{ "keys": ["ctrl+shift+v"], "command": "clipboard_manager_choose_and_paste" },
{ "keys": ["ctrl+i", "ctrl+alt+v"], "command": "clipboard_manager_next_and_paste" },
{ "keys": ["ctrl+i", "ctrl+shift+v"], "command": "clipboard_manager_previous_and_paste" },
{ "keys": ["ctrl+shift+q"], "command": "todo_manager_add", "args": { "at_line": true } },
{ "keys": ["ctrl+alt+shift+q"], "command": "todo_manager_open"},
{ "keys": ["ctrl+alt+shift+w"], "command": "todo_manager_purge"},
{ "keys": ["ctrl+shift+'"], "command": "change_quotes" },
// resets
{ "keys": ["ctrl+alt+d"], "command": "duplicate_line" },
{ "keys": ["ctrl+shift+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["ctrl+alt+f"], "command": "find_under_expand" },
{ "keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
{ "keys": ["ctrl+k", "ctrl+l"], "command": "expand_selection", "args": {"to": "line"} },
{ "keys": ["ctrl+i"], "command": "reindent" },
{ "keys": ["ctrl+alt+i"], "command": "abacus" },
{ "keys": ["ctrl+alt+shift+i"], "command": "show_panel", "args": {"panel": "incremental_find", "reverse":false} },
{ "keys": ["ctrl+shift+l"], "command": "lower_case" },
{ "keys": ["ctrl+alt+shift+l"], "command": "split_selection_into_lines" },
{ "keys": ["ctrl+alt+u"], "command": "upper_case" },
{ "keys": ["ctrl+alt+shift+u"], "command": "soft_redo" },
{ "keys": ["ctrl+alt+f3"], "command": "find_under" },
{ "keys": ["ctrl+f3"], "command": "next_result" },
// Replace panel key bindings
{ "keys": ["f4"], "command": "replace" },
{ "keys": ["alt+a"], "command": "replace_all", "args": {"close_panel": true},
"context": [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}]
},
// custom settings changes
{ "keys": ["ctrl+alt+w"], "command": "set_setting", "args": { "setting": "word_wrap", "value": true } },
{ "keys": ["ctrl+alt+shift+w"], "command": "set_setting", "args": { "setting": "word_wrap", "value": false } }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment