Skip to content

Instantly share code, notes, and snippets.

@alehano
Last active August 29, 2015 14:18
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 alehano/3729edd107c752935237 to your computer and use it in GitHub Desktop.
Save alehano/3729edd107c752935237 to your computer and use it in GitHub Desktop.
Sublime text move cursor with CTRL+JLIKUO
[
{ "keys": ["ctrl+l"], "command": "move_to", "args": {"to": "hardeol", "extend": false} },
{ "keys": ["ctrl+j"], "command": "move_to", "args": {"to": "hardbol", "extend": false} },
{ "keys": ["ctrl+i"], "command": "line_jumper", "args": { "number_of_lines": 10, "cmd": "up" } },
{ "keys": ["ctrl+shift+i"], "command": "line_jumper", "args": { "number_of_lines": 10, "cmd": "up_select" } },
{ "keys": ["ctrl+k"], "command": "line_jumper", "args": { "number_of_lines": 10, "cmd": "down" } },
{ "keys": ["ctrl+shift+k"], "command": "line_jumper", "args": { "number_of_lines": 10, "cmd": "down_select" } },
// Move cursor with cmd + jlik, i o
{ "keys": ["command+u"], "command": "move", "args": {"by": "subwords", "forward": false} },
{ "keys": ["command+o"], "command": "move", "args": {"by": "subwords", "forward": true} },
{ "keys": ["command+j"], "command": "move", "args": {"by": "characters", "forward": false} },
{ "keys": ["command+l"], "command": "move", "args": {"by": "characters", "forward": true} },
{ "keys": ["command+i"], "command": "move", "args": {"by": "lines", "forward": false} },
{ "keys": ["command+k"], "command": "move", "args": {"by": "lines", "forward": true} },
{ "keys": ["command+shift+u"], "command": "move", "args": {"by": "subwords", "forward": false, "extend": true} },
{ "keys": ["command+shift+o"], "command": "move", "args": {"by": "subword_ends", "forward": true, "extend": true} },
{ "keys": ["command+shift+j"], "command": "move", "args": {"by": "characters", "forward": false, "extend": true} },
{ "keys": ["command+shift+l"], "command": "move", "args": {"by": "characters", "forward": true, "extend": true} },
{ "keys": ["command+shift+i"], "command": "move", "args": {"by": "lines", "forward": false, "extend": true} },
{ "keys": ["command+shift+k"], "command": "move", "args": {"by": "lines", "forward": true, "extend": true} },
// experiment
// { "keys": ["ctrl+/"], "command": "gs_comment_forward", "context": [{ "key": "selector", "operator": "equal", "operand": "source.go" }] },
// { "keys": ["super+d"], "command": "duplicate_line" },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment