q followed by a character (other than ESC q) to start recording a keyboard macro. Enter command keys. ESC q to stop recording. Macro now available via the @ and character used
Example
q c will start recording and assign the macro to c
Type in the evil keys that represent the commands you want to include in the keyboard macro.
q
followed by a character (other thanESC q
) to start recording a keyboard macro. Enter command keys.ESC q
to stop recording. Macro now available via the @ and character usedExample
q c
will start recording and assign the macro toc
Type in the evil keys that represent the commands you want to include in the keyboard macro.
ESC q
to save the macro as c@c
to run the macro24@c to run the macro 24 times
Reference https://stackoverflow.com/a/22820324/1762872