You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I nnoremap 0 ^ in vim and it works perfectly. Because a command count won't start with a 0.
But in vscode, if I made such key binding, though if I only press 0 it works as expected, it makes preceding command count erroneous.
I mean, it makes 20G to be 2, cursorHome, and G, and guide me to line 2, this is not expected.
If i use "after": ["^"] instead of command of cursorHome, the 20G will be "2 times ^" and "G", well, even worse?
Let the number 0 in normal mode after a number still be 0, not mapped command.
Describe the bug
I
nnoremap 0 ^
in vim and it works perfectly. Because a command count won't start with a 0.But in vscode, if I made such key binding, though if I only press 0 it works as expected, it makes preceding command count erroneous.
I mean, it makes 20G to be 2, cursorHome, and G, and guide me to line 2, this is not expected.
If i use
"after": ["^"]
instead of command of cursorHome, the 20G will be "2 times ^" and "G", well, even worse?Let the number 0 in normal mode after a number still be 0, not mapped command.
To Reproduce
to settings.json.
Expected behavior
Like in vim,
Pressing 0 moves to line start,
Pressing 10G moves to line 10, not line 1
Environment:
The text was updated successfully, but these errors were encountered: