From b9659f49ad697af86feb722082522400cb1fa0f9 Mon Sep 17 00:00:00 2001 From: crides Date: Tue, 14 Nov 2023 21:30:33 -0800 Subject: [PATCH] map `cw`/`cW` to `ce`/`cE` by default --- src/edit_mode/vi/command.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/edit_mode/vi/command.rs b/src/edit_mode/vi/command.rs index e86f9f31..7159acb9 100644 --- a/src/edit_mode/vi/command.rs +++ b/src/edit_mode/vi/command.rs @@ -210,12 +210,10 @@ impl Command { ReedlineOption::Edit(EditCommand::MoveToStart), ReedlineOption::Edit(EditCommand::ClearToLineEnd), ]), - Motion::NextWord => { - Some(vec![ReedlineOption::Edit(EditCommand::CutWordRightToNext)]) + Motion::NextWord => Some(vec![ReedlineOption::Edit(EditCommand::CutWordRight)]), + Motion::NextBigWord => { + Some(vec![ReedlineOption::Edit(EditCommand::CutBigWordRight)]) } - Motion::NextBigWord => Some(vec![ReedlineOption::Edit( - EditCommand::CutBigWordRightToNext, - )]), Motion::NextWordEnd => { Some(vec![ReedlineOption::Edit(EditCommand::CutWordRight)]) }