Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

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

5brian17aecfde6f3d
diff --git a/crates/vim/src/command.rs b/crates/vim/src/command.rs
index e2f366939c5..b31bbbd326c 100644
--- a/crates/vim/src/command.rs
+++ b/crates/vim/src/command.rs
@@ -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),
]
}