Vim - Creating a Macro Without Recording It

Just as you can edit a macro in Vim by pasting it to a buffer and editing the pasted text (then yanking the edited text into the macro register), you can create a Vim macro by yanking (J. Random) text into a register then executing that register as a macro.

(This makes it easy to play the home game, "Gee, I wonder what this line noise would do in Vim?")

Leave a comment

About Mark Leighton Fisher

user-pic Perl/CPAN user since 1992.