q

q{char} will start recording a macro into register {char}. Press q again to stop recording. Press @{char} to play back the macro.

Further Reading

:h q :h Q

More Gifs