Skip to content

Instantly share code, notes, and snippets.

@wizioo
Last active August 29, 2015 14:21
Key binding in Sublime text for OSX with keyboard including Numeric keys (sublime keymap)

Key binding for Sublime Text in OSX w/ Keyboard + Keypad

Allow user to use "Home" & "End" touches and mix it with ctrl and shift.

Configuration

Just copy those line in sublime text after : Sublime Text > Preferences > Key Bindings - Users

Associations created

  • Home : go to beginning of line
  • End : go to end of line
  • Shift+Home : select from cursor until the beginning of line
  • Shift+End : select from cursor until the end of line
  • Ctrl+Home : go to beginning of file
  • Ctrl+End : go to end of file
  • Ctrl+Shift+Home : select from cursor until the beginning of file
  • Ctrl+Shift+End : select from cursor until the end of file
[
{ "keys": ["end"], "command": "move_to", "args": { "to": "eol" } },
{ "keys": ["home"], "command": "move_to", "args": { "to": "bol" } },
{ "keys": ["shift+end"], "command": "move_to", "args": { "to": "eol", "extend": true } },
{ "keys": ["shift+home"], "command": "move_to", "args": { "to": "bol", "extend": true } },
{ "keys": ["ctrl+end"], "command": "move_to", "args": { "to": "eof" } },
{ "keys": ["ctrl+home"], "command": "move_to", "args": { "to": "bof" } },
{ "keys": ["ctrl+shift+end"], "command": "move_to", "args": { "to": "eof", "extend": true } },
{ "keys": ["ctrl+shift+home"], "command": "move_to", "args": { "to": "bof", "extend": true } },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment