Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
vim: Add == and fix = in the status bar (#21490)
Conrad Irwindb34f293006d
diff --git a/assets/keymaps/vim.json b/assets/keymaps/vim.jsonindex 5f5933ef63e..3c2197afcc4 100644--- a/assets/keymaps/vim.json+++ b/assets/keymaps/vim.json@@ -489,6 +489,13 @@"<": "vim::CurrentLine"}},+ {+ "context": "vim_operator == eq",+ "use_layout_keys": true,+ "bindings": {+ "=": "vim::CurrentLine"+ }+ },{"context": "vim_operator == gc","use_layout_keys": true,diff --git a/crates/vim/src/state.rs b/crates/vim/src/state.rsindex af187381ad4..f43de2cf6f3 100644--- a/crates/vim/src/state.rs+++ b/crates/vim/src/state.rs@@ -487,6 +487,7 @@ impl Operator {Operator::Literal {prefix: Some(prefix),} => format!("^V{prefix}"),+ Operator::AutoIndent => "=".to_string(),_ => self.id().to_string(),}}