Vim macros allows the recording of any typed characters so that they can then be replayed again.
NOTE: A register is a single character from: {0-9a-zA-Z“}.
TIP: A suggestion is to use the q register.
What happens if the macro steps need to include the q character - as that character is what stops a macro recording?
Example: Record a macro that deletes all occurrences of the letter q from the current line:
qq0V:s/q//g<Enter>q
NOTE: The break-down of these steps:
Display what a register contains:
:reg
returns:
0V:s/q//g^M
@q
NOTE: The q is the Register that contains the macro to run.
@@