Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Abort keystroke sequence?

When using Vim I sometimes find myself midway through entering a key combination and change my mind or realise it's incorrect (I'm still learning).

For example I may have typed d, 4 and be about to press d in order to delete 4 lines and realise this is not what I want to do. How can I abort the current sequence of keystrokes?

like image 806
Matt Joiner Avatar asked Feb 17 '11 10:02

Matt Joiner


People also ask

What is Type escape sequence to abort?

To abort a ping session, type the escape sequence (Shift, Control, and the 6 key, all at once). Another useful command that you can use when troubleshooting connectivity issues is the debug ip icmp command.

How to abort traceroute on Cisco switch?

it's ctrl-shift and 6 (not F6).

What is the break key Cisco?

A break signal enables you to access a ROM Monitor on Cisco IOS® devices when a password recovery is necessary.

How to exit from traceroute command?

To stop the traceroute process, enter Ctrl-C.


3 Answers

Ctrl+C also aborts the current command.

like image 56
Greg Hewgill Avatar answered Sep 21 '22 16:09

Greg Hewgill


Press ESC.

(no more text)

like image 35
Felix Kling Avatar answered Sep 22 '22 16:09

Felix Kling


I prefer CTRL+[ over escape at all times, including aborting the current command. It's quicker and easier to type, particularly if you remap caps lock to ctrl.

like image 35
Greg Sexton Avatar answered Sep 23 '22 16:09

Greg Sexton