Skip to content

Instantly share code, notes, and snippets.

@technicallyrite
Created August 3, 2016 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save technicallyrite/708756921a1eb6b7b95d925017b77408 to your computer and use it in GitHub Desktop.
Save technicallyrite/708756921a1eb6b7b95d925017b77408 to your computer and use it in GitHub Desktop.
[
// arrow keys to ijkl, relies on an OSX keymap for home and end
{ "keys": ["ctrl+j"], "command": "move", "args": {"by": "characters", "forward": false} },
{ "keys": ["ctrl+l"], "command": "move", "args": {"by": "characters", "forward": true} },
{ "keys": ["ctrl+i"], "command": "move", "args": {"by": "lines", "forward": false} },
{ "keys": ["ctrl+k"], "command": "move", "args": {"by": "lines", "forward": true} },
{ "keys": ["shift+ctrl+j"], "command": "move", "args": {"by": "characters", "forward": false, "extend": true} },
{ "keys": ["shift+ctrl+l"], "command": "move", "args": {"by": "characters", "forward": true, "extend": true} },
{ "keys": ["shift+ctrl+i"], "command": "move", "args": {"by": "lines", "forward": false, "extend": true} },
{ "keys": ["shift+ctrl+k"], "command": "move", "args": {"by": "lines", "forward": true, "extend": true} },
// scroll
{ "keys": ["ctrl+alt+j"], "command": "scroll_lines", "args": {"amount": 1.0 } },
{ "keys": ["ctrl+alt+k"], "command": "scroll_lines", "args": {"amount": -1.0 } },
// move by words
{ "keys": ["ctrl+alt+j"], "command": "move", "args": {"by": "words", "forward": false} },
{ "keys": ["ctrl+alt+l"], "command": "move", "args": {"by": "word_ends", "forward": true} },
{ "keys": ["ctrl+shift+alt+j"], "command": "move", "args": {"by": "words", "forward": false, "extend": true} },
{ "keys": ["ctrl+shift+alt+l"], "command": "move", "args": {"by": "word_ends", "forward": true, "extend": true} }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment