Tag: macro
-
Quick automation in Vim with macros
A macro lets you record a sequence of commands to a registry. The macro can be replayed with the following command (once by default). You can view the macro using the reg command. Finally, these commands will edit the macro in a new buffer. Example Consider the following file. Suppose we want to move each…