macro also known as macroinstruction
Macros are a text substitution mechanism.
macros replace (expand) a big block of code from a small sequence of characters.
The term derives from “macro instruction”, and such expansions were originally used in generating assembly language code.
The mapping process that instantiates (transforms) a macro use into a specific sequence is known as macro expansion.
Vim has full implementation of macros. It can record into a register (macro) what a person types on the keyboard and it can be replayed.
The mechanism by which the code fragments are recognised (for instance, php being bracketed by <?php and ?>) is similar to a textual macro language.