How To Comment Code In Vim
In Vim there is no out-of-the-box way to comment code. But some plugins will make that happen for us.
It introduces a special command (operator)
gc, which fits quite nicely into Vim world.
gcccomment/uncomment the current line
gccomment/uncomment the selection in Visual mode
gcapcomment the entire paragraph (it supports the text objects (:help text-objects))