Sublime Home and End Keys

So, I just bought a full size Apple keyboard for my setup and I’m loving having Page Up and Page Down keys again.  By default Sublime doesn’t have Home and End mapped though.

I found this article and added these lines to Preferences > Key Bindings – User to enable Home and End:

{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} },
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} }

and now all is right with the world, or at least Sublime 🙂

One thought on “Sublime Home and End Keys”

  1. Also consider adding these, which will select to the beginning and end of the line:

    { "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true} },
    { "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} },

    And these, which will allow you to add Ctrl+ to move to the beginning and end of the file:

    { "keys": ["ctrl+home"], "command": "move_to", "args": {"to": "bof"} },
    { "keys": ["ctrl+end"], "command": "move_to", "args": {"to": "eof"} },
    { "keys": ["ctrl+shift+home"], "command": "move_to", "args": {"to": "bof", "extend": true} },
    { "keys": ["ctrl+shift+end"], "command": "move_to", "args": {"to": "eof", "extend": true} }


Comments are closed.