1

Say the cursor is []:

A very intelligent turtle
Found programming [U]NIX a hurdle

I want to achieve the same thing as l D in one go:

A very intelligent turtle
Found programming [U]

Is there any shortcut for this? I'd prefer a one keystroke solution, but would also like to note alternative motions.

Similar in title but not in question:
https://stackoverflow.com/questions/30784189/delete-everything-after-the-cursor-or-delete-everything-after-the-current-word

[2.22.22]:
What if you're in insert mode? Say the cursor is now |:

A very intelligent turtle
Found programming U|NIX a hurdle

What I tend to do here is either ESC l D or SPC ESC D.

1 Answer 1

1

For a single keystroke I think your only option is a nnoremap s lD or something like that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.