Inspired by SublimeTex Native VIM Navigation and Sublime Alternate VIM Navigation.
Last active
March 16, 2023 18:29
-
-
Save scottcheng/8185dbc236953f47ae5f to your computer and use it in GitHub Desktop.
Vim-style navigation key mapping for Sublime Text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ "keys": ["ctrl+k"], "command": "move", "args": { "by": "lines", "forward": false } }, | |
{ "keys": ["ctrl+j"], "command": "move", "args": { "by": "lines", "forward": true } }, | |
{ "keys": ["ctrl+l"], "command": "move", "args": { "by": "characters", "forward": true } }, | |
{ "keys": ["ctrl+h"], "command": "move", "args": { "by": "characters", "forward": false } }, | |
{ "keys": ["ctrl+shift+k"], "command": "move", "args": { "by": "lines", "forward": false, "extend": true } }, | |
{ "keys": ["ctrl+shift+j"], "command": "move", "args": { "by": "lines", "forward": true, "extend": true } }, | |
{ "keys": ["ctrl+shift+l"], "command": "move", "args": { "by": "characters", "forward": true, "extend": true } }, | |
{ "keys": ["ctrl+shift+h"], "command": "move", "args": { "by": "characters", "forward": false, "extend": true } }, | |
{ "keys": ["ctrl+w"], "command": "move", "args": { "by": "words", "forward": true } }, | |
{ "keys": ["ctrl+b"], "command": "move", "args": { "by": "words", "forward": false } }, | |
{ "keys": ["ctrl+shift+w"], "command": "move", "args": { "by": "words", "forward": true, "extend": true } }, | |
{ "keys": ["ctrl+shift+b"], "command": "move", "args": { "by": "words", "forward": false, "extend": true } }, | |
{ "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} }, | |
{ "keys": ["ctrl+["], "command": "move_to", "args": { "to": "bol", "forward": true } }, | |
{ "keys": ["ctrl+]"], "command": "move_to", "args": { "to": "eol", "forward": false } }, | |
{ "keys": ["ctrl+shift+["], "command": "move_to", "args": { "to": "bol", "forward": true, "extend": true } }, | |
{ "keys": ["ctrl+shift+]"], "command": "move_to", "args": { "to": "eol", "forward": false, "extend": true } }, | |
{ "keys": ["ctrl+alt+k"], "command": "scroll_lines", "args": { "amount": 1.0 } }, | |
{ "keys": ["ctrl+alt+j"], "command": "scroll_lines", "args": { "amount": -1.0 } } | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment