Skip to content

Instantly share code, notes, and snippets.

@chriddyp
Last active March 13, 2017 09:48
Show Gist options
  • Save chriddyp/5de1d28f4465fecfe841 to your computer and use it in GitHub Desktop.
Save chriddyp/5de1d28f4465fecfe841 to your computer and use it in GitHub Desktop.
map the arrow keys to JKLI with `cntrl` and jump code blocks with `cntrl`-`option`-K, `cntrl`-`option`-I
[
{ "keys": ["ctrl+j"], "command": "move", "args": {"by": "words", "forward": false} },
{ "keys": ["ctrl+l"], "command": "move", "args": {"by": "words", "forward": true} },
{ "keys": ["ctrl+k"], "command": "move", "args": {"by": "lines", "forward": true} },
{ "keys": ["ctrl+i"], "command": "move", "args": {"by": "lines", "forward": false} },
{ "keys": ["ctrl+alt+j"], "command": "move", "args": {"by": "words", "forward": false} },
{ "keys": ["ctrl+alt+l"], "command": "move", "args": {"by": "words", "forward": true} },
{ "keys": ["ctrl+alt+k"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true} },
{ "keys": ["ctrl+alt+i"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false} },
{ "keys": ["alt+j"], "command": "move", "args": {"by": "characters", "forward": false} },
{ "keys": ["alt+l"], "command": "move", "args": {"by": "characters", "forward": true} },
{ "keys": ["alt+k"], "command": "move", "args": {"by": "lines", "forward": true} },
{ "keys": ["alt+i"], "command": "move", "args": {"by": "lines", "forward": false} },
{ "keys": ["shift+ctrl+j"], "command": "move", "args": {"by": "words", "forward": false, "extend": true} },
{ "keys": ["shift+ctrl+l"], "command": "move", "args": {"by": "words", "forward": true, "extend": true} },
{ "keys": ["shift+ctrl+k"], "command": "move", "args": {"by": "lines", "forward": true, "extend": true} },
{ "keys": ["shift+ctrl+i"], "command": "move", "args": {"by": "lines", "forward": false, "extend": true} },
{ "keys": ["shift+ctrl+alt+j"], "command": "move", "args": {"by": "words", "forward": false, "extend": true} },
{ "keys": ["shift+ctrl+alt+l"], "command": "move", "args": {"by": "words", "forward": true, "extend": true} },
{ "keys": ["shift+ctrl+alt+k"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true, "extend": true} },
{ "keys": ["shift+ctrl+alt+i"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false, "extend": true} },
{ "keys": ["shift+alt+j"], "command": "move", "args": {"by": "characters", "forward": false, "extend": true} },
{ "keys": ["shift+alt+l"], "command": "move", "args": {"by": "characters", "forward": true, "extend": true} },
{ "keys": ["shift+alt+k"], "command": "move", "args": {"by": "lines", "forward": true, "extend": true} },
{ "keys": ["shift+alt+i"], "command": "move", "args": {"by": "lines", "forward": false, "extend": true} },
{"keys": ["alt+space"], "command": "insert", "args": {"characters": " "}}
]
@pie6k
Copy link

pie6k commented Mar 13, 2017

Great. Note however, that ALT + L is used in many latin-extended countries to create special chars eg. ł

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