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.