Recording a macro is a great way to perform a one-time task, or to get things done quickly when you don't want to mess with Vim script or mapping, or if you do not yet know how to do it more elegantly. In Vim, the word "macro" may refer to: A sequence of commands recorded to a register (this tip). A mapping to expand a sequence of typed keys to ...