To record a macro, do one of the following:
The cursor will now have a little red "record" sign in it when it is hovering over a text document. This means you are recording a macro: all of your text editing actions, such as typing, cut, copy, paste, delete, join lines, undo and redo, etc. are being recorded!
Once you stop recording your macro, you will be prompted for a name for it, for future identification.
See also: End recording macros, Recording temporary macros, Playing back macros