Hi.
In VIM I had such mapping: vmap v <Plug>(expand_region_expand)
That trick was allowing me to just tap v several times to first start selection, and then expand it. In that case, to select a word under the cursor it was enough to type vv instead of viw.
I'm trying to implement something similar in VSCode:
"vim.visualModeKeyBindings": [
{
"before": [ "v" ],
"commands": [ "editor.action.smartSelect.grow" ]
},
]
But pressing v in _Visual Mode_ just leads to exit to _Normal Mode_.
Is there any other a hacky-way to map v in _Visual Mode_?
I ended up with:
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": [ "v" ],
"after": [ "v" ]
}
],
"vim.visualModeKeyBindingsNonRecursive": [
{
"before": [ "v" ],
"after": [ "a", "f" ]
}
]
Most helpful comment
I ended up with: