Friday, April 17, 2015

How to remap hjkl in sublime text 2 vintage mode



First go to

Preference >> Browse Package

It would open up your package folder
open


Default.sublime-keymap

Open that and use your analytical skills ....

Im now using
j = left
k = down
l = right
i  = up

using these confirguration ... and ohh.... If you want to go back to insert mode ... use    " a"


{ "keys": ["k"], "command": "set_motion", "args": {
"motion": "move",
"motion_args": {"by": "lines", "forward": true, "extend": true },
"linewise": true },
"context": [{"key": "setting.command_mode"}]
},
{ "keys": ["i"], "command": "set_motion", "args": {
"motion": "move",
"motion_args": {"by": "lines", "forward": false, "extend": true },
"linewise": true },
"context": [{"key": "setting.command_mode"}]
},
{ "keys": ["l"], "command": "set_motion", "args": {
"motion": "vi_move_by_characters_in_line",
"motion_args": {"forward": true, "extend": true, "visual": false }},
"context": [{"key": "setting.command_mode"}]
},
view raw remap.json hosted with ❤ by GitHub