Feng erdong's Blog

Life is beautiful

Recoding and Playing in VIM

| Comments

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

Comments