&
The
Command
The & command in Vim
Command
repeat :s
Repeat the last
:s substitute command on the current line, but without the flags. Use :&& to repeat with flags, or g& to repeat on all lines.Examples
&(repeat last :s):&&(repeat with flags)g&(repeat on all lines)
Reference
Learn every Vim command visually — right in your browser.
Add Vim What? to Chrome — FreeAlso on Firefox.
Related commands