Reputation: 2666
Sometimes I start to search and replace something with :%s/string/
..., then quickly change my mind. Or, maybe I am manipulating my tabs. I want to quickly return to the cursor position I just left.
Is there a way to cancel that command/go back to the editor using a single shortcut? It's kind of tedious having to just backspace through the command.
Obviously this is very nit picky, but perhaps the answer is simple.
Upvotes: 1
Views: 949
Reputation: 28983
Ctrl+c
:help CTRL-C
CTRL-C
CTRL-C Interrupt current (search) command. Use CTRL-Break on
MS-DOS dos-CTRL-Break.
In Normal mode, any pending command is aborted.
Upvotes: 4