Vim navigation between wrapped Lines in VSCode
Noticing that long lines might be soft-wrapped automatically, and navigating with j
k
would result in jumping across many soft-wrapped lines (but it is in fact a single line). VIM uses g j
and g k
to navigate within the lines instead.
If you want j
k
to be your default navigating keys through the block, one possible way is to remap it to g j
g k
instead. As mentioned in this Stackoverflow thread.
The key mapping for Vim extension for VSCode is done thus:
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": [
"j"
],
"after": [
"g",
"j"
]
},
{
"before": [
"k"
],
"after": [
"g",
"k"
]
}
],
Put it in your settings.json
.