vim: Fix minor keybinding bugs (#13086)

Fixes: #13068
Fixes: #9383



Release Notes:

- vim: Fixed `home` and `end` in visual mode (#13068)
- vim: Fixed inserting a 0 in insert mode with a count (#9383)
This commit is contained in:
Conrad Irwin 2024-06-14 22:38:50 -06:00 committed by GitHub
parent fc19cc0ddf
commit 7cc2538fe1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,6 +39,7 @@
"right": "vim::Right", "right": "vim::Right",
"space": "vim::Space", "space": "vim::Space",
"$": "vim::EndOfLine", "$": "vim::EndOfLine",
"end": "vim::EndOfLine",
"^": "vim::FirstNonWhitespace", "^": "vim::FirstNonWhitespace",
"_": "vim::StartOfLineDownward", "_": "vim::StartOfLineDownward",
"g _": "vim::EndOfLineDownward", "g _": "vim::EndOfLineDownward",
@ -140,7 +141,8 @@
"ctrl-q": "vim::ToggleVisualBlock", "ctrl-q": "vim::ToggleVisualBlock",
"shift-k": "editor::Hover", "shift-k": "editor::Hover",
"shift-r": "vim::ToggleReplace", "shift-r": "vim::ToggleReplace",
"0": "vim::StartOfLine", // When no number operator present, use start of line motion "0": "vim::StartOfLine",
"home": "vim::StartOfLine",
"ctrl-f": "vim::PageDown", "ctrl-f": "vim::PageDown",
"pagedown": "vim::PageDown", "pagedown": "vim::PageDown",
"ctrl-b": "vim::PageUp", "ctrl-b": "vim::PageUp",
@ -408,7 +410,7 @@
} }
}, },
{ {
"context": "Editor && VimCount", "context": "Editor && VimCount && vim_mode != insert",
"bindings": { "bindings": {
"0": ["vim::Number", 0] "0": ["vim::Number", 0]
} }