Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mnme/5235936 to your computer and use it in GitHub Desktop.
Save mnme/5235936 to your computer and use it in GitHub Desktop.
Sublime Text 2 and 3: fix for OSX home/end keys, with selection support and command (super) key
{ "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 } },
{ "keys": ["super+end"], "command": "move_to", "args": {"to": "eof"} },
{ "keys": ["super+home"], "command": "move_to", "args": {"to": "bof"} },
{ "keys": ["super+shift+end"], "command": "move_to", "args": {"to": "eof", "extend": true} },
{ "keys": ["super+shift+home"], "command": "move_to", "args": {"to": "bof", "extend": true } },
@jimmykuo
Copy link

jimmykuo commented Jul 1, 2013

it works great.
syntax is fine. don't forget the last comma (,)

@velipso
Copy link

velipso commented Sep 30, 2017

sweet jesus thank you, this was driving me nuts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment