Today I Learned

hashrocket A Hashrocket project

gcc comments the code

I've been using the vim-commentary plugin for years but always by selecting a line and THEN using gc to turn the line into a language specific comment. Selecting the line isn't necessary though, you can just use gcc and the line the cursor is on will either be turned into a comment or if its a comment already it'll be uncommented.

See More #vim TILs
Every developer at Hashrocket is a Vim expert. Check out our development environment, Dotmatrix, and if you are in Chicago, come to the Vim Chicago Meetup hosted at our Chicago office.