How do I quickly re-insert the text I just typed without leaving insert mode?
<C-a> (in insert mode)
While in insert mode, pressing re-inserts whatever text you typed during your previous insert session.
<C-a> (in insert mode)
While in insert mode, pressing re-inserts whatever text you typed during your previous insert session.
qq;.q then @q or @@
The dot command (.
qa...@aq
A recursive macro calls itself at the end of its recording, causing it to repeat until a motion or search fails.
g&
The g& command repeats the last substitute command across the entire file.
vim-repeat
The vim-repeat plugin by Tim Pope extends Vim's built-in .
plugins #plugins #repeat #dot-command #workflow #normal-mode
@:
The @: command re-executes the most recently run Ex command (any command starting with :).
command-line #command-line #ex-commands #repeat #normal-mode #productivity
&
The & command in normal mode repeats the last :s substitution on the current line.
search #search #substitution #ex-commands #repeat #normal-mode
gn
The gn motion searches forward for the next match of the last search pattern and visually selects it.
search #navigation #search #motions #normal-mode #repeat #editing
cgn
The cgn command combines the change operator with the gn motion to change the next occurrence of your last search pattern.