Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vi mode: map cw/cW to ce/cE by default #668

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
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