diff --git a/assets/keymaps/vim.json b/assets/keymaps/vim.json index 5f5933ef63..3c2197afcc 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.rs index af187381ad..f43de2cf6f 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(), } }