From 17aecfde6f3dd24a94d4e5eb95abe6a7cc9132f0 Mon Sep 17 00:00:00 2001 From: 5brian Date: Mon, 31 Mar 2025 13:25:11 -0400 Subject: [PATCH] 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 --- crates/vim/src/command.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/vim/src/command.rs b/crates/vim/src/command.rs index e2f366939c..b31bbbd326 100644 --- a/crates/vim/src/command.rs +++ b/crates/vim/src/command.rs @@ -714,7 +714,7 @@ fn generate_commands(_: &App) -> Vec { 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::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), ] }