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 } },
@Dayjo
Copy link

Dayjo commented Jun 11, 2013

Can confirm that this works just great on Sublime Text 3 :)

@FlatMapIO
Copy link

Can't save. syntax error.

@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