How to Comment in Vim's Config Files: ". Vimrc"?
How Do I Add a Comment in Vim's Configuration Files, Like. Vimrc? 4 Answers a Double Quote to the Left of the Text You Want to Comment. Example: " This Is How...
How do I add a comment in Vim's configuration files, like .vimrc?
4 Answers
A double quote to the left of the text you want to comment.
Example:
" this is how a comment looks like in ~/.vimrc
To be clear: Do not include a closing double quote. (See comment from Arslan Ali below.)
"This is a comment in vimrc. It does not have a closing quote
Source:
Same as above. Use double quote to start the comment and without the closing quote.
Example:
set cul "Highlight current line
You can add comments in Vim's configuration file by either:
" brief description of the command
or:
"" commented command
Taken from here