vim: Add neovim 0.11 default mappings (#28602)

Update the keymap to include:
https://neovim.io/doc/user/news-0.11.html#_defaults

This does conflict with `gr` replace with register though, is `gR` a
good alternative?

Release Notes:

- vim: Update the keymap to include: https://neovim.io/doc/user/news-0.11.html#_defaults
- vim: Replace with register has been remapped from `gr` to `gR`.
This commit is contained in:
5brian 2025-04-28 14:14:43 -04:00 committed by GitHub
parent b41ffae161
commit ed367e1636
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 134 additions and 13 deletions

View file

@ -917,7 +917,7 @@ mod test {
);
cx.simulate_keystrokes("y i w");
cx.simulate_keystrokes("w");
cx.simulate_keystrokes("g r i w");
cx.simulate_keystrokes("g shift-r i w");
cx.assert_state(
indoc! {"
fish fisˇh
@ -925,7 +925,7 @@ mod test {
"},
Mode::Normal,
);
cx.simulate_keystrokes("j b g r e");
cx.simulate_keystrokes("j b g shift-r e");
cx.assert_state(
indoc! {"
fish fish
@ -945,7 +945,7 @@ mod test {
);
cx.simulate_keystrokes("y i w");
cx.simulate_keystrokes("w");
cx.simulate_keystrokes("v i w g r");
cx.simulate_keystrokes("v i w g shift-r");
cx.assert_state(
indoc! {"
fish fisˇh
@ -953,7 +953,7 @@ mod test {
"},
Mode::Normal,
);
cx.simulate_keystrokes("g r r");
cx.simulate_keystrokes("g shift-r r");
cx.assert_state(
indoc! {"
fisˇh
@ -961,7 +961,7 @@ mod test {
"},
Mode::Normal,
);
cx.simulate_keystrokes("j w g r $");
cx.simulate_keystrokes("j w g shift-r $");
cx.assert_state(
indoc! {"
fish
@ -986,7 +986,7 @@ mod test {
);
cx.simulate_keystrokes("y i w");
cx.simulate_keystrokes("w");
cx.simulate_keystrokes("g r i w");
cx.simulate_keystrokes("g shift-r i w");
cx.assert_state(
indoc! {"
fish fisˇh