Skip to content

Instantly share code, notes, and snippets.

@rschuman
Created August 6, 2013 16:35
Show Gist options
  • Select an option

  • Save rschuman/6166168 to your computer and use it in GitHub Desktop.

Select an option

Save rschuman/6166168 to your computer and use it in GitHub Desktop.
vim magic

Add an '=' character to end of lines 10-20: :10,20/$/=

Record a macro to register a, and replay the macro:

  • press qa to start recording to register a
  • type in commands
  • press q to finish recording
  • [if necessary] go to line for replaying macro
  • press 1@a to play the macro once. Replace 1 with another number if you want to replay more than once.

Paste contents in current buffer to end of line: $p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment