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:
parent
fc19cc0ddf
commit
7cc2538fe1
1 changed files with 4 additions and 2 deletions
|
@ -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]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue