0

My problem

Consider the following line:

enter image description here

I have just pasted @SrvrlessDaysTLVtlv before tlv@serverlessdays.io, and I'd like to delete anything from the small-case t till EOL.

What have I tried

  • d$ deletes from the V till EOL, not from the t
  • Read about motions, found nothing about deleting from the next character

My question

What is the right motion (for delete or yank) from the next cursor, not from the current one?

  • You might want to edit your question with some example data instead of your actual endpoints. – statox Apr 3 '18 at 15:12
4

I think the easiest and quickest solution is to move the cursor of one character to the right (with l or right or space) and then delete until the end of the line with D (or d$ which is the same thing)

lD

You'll end up on the end of the line so moving the cursor is not that bad and you still have only two key to stroke.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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