Skip to content

Instantly share code, notes, and snippets.

@andreyshuster
Created June 5, 2014 11:01
Show Gist options
  • Save andreyshuster/a154abbda3b44dec9636 to your computer and use it in GitHub Desktop.
Save andreyshuster/a154abbda3b44dec9636 to your computer and use it in GitHub Desktop.
vim comment multiline
- go to first char of a line and use blockwise visual mode (CTRL-V)
- go down/up until first char of all lines I want to comment out are selected
- use SHIFT-I and then type my comment character (# for ruby)
- use ESC to insert the comment character for all lines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment