vim: Fix :ex, :exit (#27755)

`:exit` should be `:exi[t]` instead of `:ex[it]`, `:ex` has different
command

- https://neovim.io/doc/user/editing.html#%3Aex
- https://neovim.io/doc/user/editing.html#%3Aexit

Changes:
- Add `:ex` same as `:edit`
- Change `:ex[it]` to `:exi[t]`

Release Notes:

- N/A
This commit is contained in:
5brian 2025-03-31 13:25:11 -04:00 committed by GitHub
parent 01a2c8eb01
commit 17aecfde6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -714,7 +714,7 @@ fn generate_commands(_: &App) -> Vec<VimCommand> {
close_pinned: true,
}),
VimCommand::new(
("ex", "it"),
("exi", "t"),
workspace::CloseActiveItem {
save_intent: Some(SaveIntent::SaveAll),
close_pinned: false,
@ -880,6 +880,7 @@ fn generate_commands(_: &App) -> Vec<VimCommand> {
VimCommand::new(("0", ""), StartOfDocument),
VimCommand::new(("e", "dit"), editor::actions::ReloadFile)
.bang(editor::actions::ReloadFile),
VimCommand::new(("ex", ""), editor::actions::ReloadFile).bang(editor::actions::ReloadFile),
VimCommand::new(("cpp", "link"), editor::actions::CopyPermalinkToLine).range(act_on_range),
]
}