Skip to content

Instantly share code, notes, and snippets.

@vpack
Last active June 18, 2017 13:31
Show Gist options
  • Save vpack/e2b79d0ac8827608f060bee0b9ca02a4 to your computer and use it in GitHub Desktop.
Save vpack/e2b79d0ac8827608f060bee0b9ca02a4 to your computer and use it in GitHub Desktop.
Vi Commands
To hide all commented line:
```
:g!/^ *#/p
:g!/^[ \t]*#/p
#:g!/^[ \t]*#\|/^[ \t]$/p
```
Reference:
* http://vim.wikia.com/wiki/Power_of_g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment