spacemacs icon indicating copy to clipboard operation
spacemacs copied to clipboard

Keyboard macros in Evil

Open practicalli-johnny opened this issue 5 years ago • 0 comments

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.

ESC qto save the macro as c

@c to run the macro

24@c to run the macro 24 times

Reference https://stackoverflow.com/a/22820324/1762872

practicalli-johnny avatar Jun 09 '20 16:06 practicalli-johnny