Skip to content

Instantly share code, notes, and snippets.

@BartlomiejSkwira
Created November 26, 2013 12:51
Show Gist options
  • Select an option

  • Save BartlomiejSkwira/7657813 to your computer and use it in GitHub Desktop.

Select an option

Save BartlomiejSkwira/7657813 to your computer and use it in GitHub Desktop.
vim
#macro
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment