Closed lukedegruchy closed 6 years ago
Currently vim.visualModeKeyBindings
is separate so you will need to duplicate your binding for visual mode as well
I confirm that the solution as suggested works, meaning, to add the below config in addition to that in the bug description:
"vim.visualModeKeyBindings": [
{
"before": ["h"],
"after": ["f"]
},
{
"before": ["f"],
"after": ["h"]
}
],
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
What happened:
Swapping h and f results in 'f' failing to move the selection left and 'h' needed to do so. This is a regression from VSCode 1.2.2 (and possibly more recent versions as well).
What did you expect to happen: 'f' should move the selection left when in visual mode. This is the case with GVim, SublimeText, IdeaVim, and VSCode 1.2.2.
How to reproduce it (as minimally and precisely as possible): Add this to settings.json:
Work on a line with some text and enter visual mode. Try to move the selection left with 'f' instead of 'h'.
Environment: