Sublime Forum

Adding '+' and '-' to Vintage command mode

#1

I’d like to add the ‘+’ and ‘-’ characters to Vintage command mode. They move the cursor to the BOL (first non-white character) resp. of the next / previous (whole) line.

I can make them move by wholeline, but how do I add the BOL motion?

{"keys": ["-"], "command": "set_motion", "args": {
    "motion": "move",
    "motion_args": {"by": "wholelines", "forward": false, "extend": true}},
    "context": [{"key": "setting.command_mode"}]
},
{"keys": ["+"], "command": "set_motion", "args": {
    "motion": "move",
    "motion_args": {"by": "wholelines", "forward": true, "extend": true}},
    "context": [{"key": "setting.command_mode"}]
}
0 Likes