Skip to content

Instantly share code, notes, and snippets.

@ryangraham
Created September 10, 2014 20:47
Show Gist options
  • Save ryangraham/f075e7d5f6baa026b9cf to your computer and use it in GitHub Desktop.
Save ryangraham/f075e7d5f6baa026b9cf to your computer and use it in GitHub Desktop.
vim comment regex
In VIM you can do one of the following:
Comment all lines: :%s/^/#
Comment lines 10 - 15: :10,15s/^/#
Comment line 10 to current line: :10,.s/^/#
Comment line 10 to end: :10,$s/^/#
http://stackoverflow.com/questions/2276572/how-do-you-do-block-comment-in-yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment