Skip to content

Instantly share code, notes, and snippets.

@drstevens
Created November 5, 2012 20:15
Show Gist options
  • Save drstevens/4020082 to your computer and use it in GitHub Desktop.
Save drstevens/4020082 to your computer and use it in GitHub Desktop.
Fixing Home/End behavior in sublime. Add the following to the top of default of user keybindings 'Sublime Text 2' -> Preferences -> Keybindings
/*
On OS X, basic text manipulations (left, right, command+left, etc) make use of the system key bindings,
and don't need to be repeated here. Anything listed here will take precedence, however.
*/
[
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} },
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} },
{ "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} },
{ "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true } },
...
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment