How to comment in Vim’s config files: “.vimrc”

commentsconfiguration-filesvim

How do I add a comment in Vim's configuration files, like .vimrc?

Best Answer

A double quote to the left of the text you want to comment.

Example: " this is how a comment looks like in ~/.vimrc