---

Vi and Vim Macro Tutorial: How To Record and Play

[ Thanks to An Anonymous Reader for
this link. ]

“High Level Steps to Record and Play inside Vim

  1. “Start recording by pressing q, followed by a lower case
    character to name the macro
  2. Perform any typical editing, actions inside Vim editor, which
    will be recorded
  3. Stop recording by pressing q
  4. Play the recorded macro by pressing @ followed by the macro
    name
  5. To repeat macros multiple times, press : NN @ macro name. NN is
    a number”


Complete Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis