Skip to content

Commit

Permalink
map cw/cW to ce/cE by default
Browse files Browse the repository at this point in the history
  • Loading branch information
crides committed Nov 15, 2023
1 parent 93af55c commit b9659f4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/edit_mode/vi/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]),

Check warning on line 213 in src/edit_mode/vi/command.rs

View check run for this annotation

Codecov / codecov/patch

src/edit_mode/vi/command.rs#L213

Added line #L213 was not covered by tests
Motion::NextBigWord => {
Some(vec![ReedlineOption::Edit(EditCommand::CutBigWordRight)])

Check warning on line 215 in src/edit_mode/vi/command.rs

View check run for this annotation

Codecov / codecov/patch

src/edit_mode/vi/command.rs#L215

Added line #L215 was not covered by tests
}
Motion::NextBigWord => Some(vec![ReedlineOption::Edit(
EditCommand::CutBigWordRightToNext,
)]),
Motion::NextWordEnd => {
Some(vec![ReedlineOption::Edit(EditCommand::CutWordRight)])
}
Expand Down

0 comments on commit b9659f4

Please sign in to comment.