Skip to content

Instantly share code, notes, and snippets.

@PatrickKing
Last active May 3, 2016 16:45
Show Gist options
  • Save PatrickKing/6c2226b4ead925489e728d7dc34111b1 to your computer and use it in GitHub Desktop.
Save PatrickKing/6c2226b4ead925489e728d7dc34111b1 to your computer and use it in GitHub Desktop.
My custom slightly OSX-like keybindings for Sublime Text on Windows.
[
{ "keys": ["ctrl+up"], "command": "swap_line_up"},
{ "keys": ["ctrl+down"], "command": "swap_line_down"},
{ "keys": ["ctrl+d"], "command": "duplicate_line"},
{ "keys": ["ctrl+y"], "command": "run_macro_file", "args": {"file": "Packages/User/Delete Line.sublime-macro"} },
{ "keys": ["ctrl+alt+right"], "command": "next_view" },
{ "keys": ["ctrl+alt+left"], "command": "prev_view" },
{ "keys": ["ctrl+g"], "command": "find_next" },
{ "keys": ["ctrl+shift+g"], "command": "find_prev" },
{ "keys": ["ctrl+alt+g"], "command": "find_all_under" },
{ "keys": ["alt+left"], "command": "move", "args": {"by": "words", "forward": false} },
{ "keys": ["alt+right"], "command": "move", "args": {"by": "word_ends", "forward": true} },
{ "keys": ["alt+shift+left"], "command": "move", "args": {"by": "words", "forward": false, "extend": true} },
{ "keys": ["alt+shift+right"], "command": "move", "args": {"by": "word_ends", "forward": true, "extend": true} },
{ "keys": ["alt+backspace"], "command": "delete_word", "args": { "forward": false } },
{ "keys": ["ctrl+left"], "command": "move_to", "args": {"to": "bol", "extend": false} },
{ "keys": ["ctrl+right"], "command": "move_to", "args": {"to": "eol", "extend": false} },
{ "keys": ["ctrl+shift+left"], "command": "move_to", "args": {"to": "bol", "extend": true} },
{ "keys": ["ctrl+shift+right"], "command": "move_to", "args": {"to": "eol", "extend": true} },
{ "keys": ["ctrl+backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard BOL.sublime-macro"} },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment