Vim macros
From wikinotes
Macros record keystrokes, and let you to play them back.
It is useful for repetitive tasks affecting hundreds of lines.
Usage
q<letter> " start recording macro bound to <letter> q " stop recording @<letter> " play-back recording