1

If I'm in normal mode and I accidentally press d vim will then wait for a motion to choose what to delete. Is their a motion or cancel command to not delete anything? Is the only option to delete something and then undo it?

2 Answers 2

2

Any command can be interrupted either by ESC (Ctrl+[) or Ctrl+C

7

Just hit the 'ESC' key. It will cancel whatever command you are in the middle of typing.

Your Answer

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

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