diff --git a/crates/vim/src/vim.rs b/crates/vim/src/vim.rs index 43915d796d..74c17f7bf1 100644 --- a/crates/vim/src/vim.rs +++ b/crates/vim/src/vim.rs @@ -680,6 +680,9 @@ impl Vim { | Operator::DeleteSurrounds ) { self.update_state(|state| state.operator_stack.clear()); + if let Operator::AddSurrounds { target: None } = operator { + self.start_recording(cx); + } }; self.update_state(|state| state.operator_stack.push(operator)); self.sync_vim_settings(cx);