So I’m quite taken with ST2 but I just can’t get around the lack of vim bindings - I’m too used to all the complex motions you do without having to hit modifier chords. For example - replace everything inside the current “string” would be: escape ->T ->" -> c -> t -> "
So I’m taking a bash at implementing a vim behaviour. Thanks to someone on this forum getting into and out of command mode was easy. The problem now comes in implementing some of the commands.
Lets take this example: 2d3w (it deletes 6 words via a round about fashion: do_twice -> delete( motion = words(3) ) )
It is theoretically possible to do this with many different contexts and combinations in the keymap, but the idea of doing that isn’t something that appeals to me. So what I was hopping I could do is something like this:
{
"keys": "everything",
"command": "vim_mode", "args": { "key": "$0" },
"context": { "key": "setting.command_mode", "operator": "equal", "operand": true } ]
}
i.e. just have my plugin function called for every keystroke that happens in command mode.
Thoughts? Just plain not possible right now?