How to comment in Vim's config files: ".vimrc"?

alexchenco picture alexchenco · Jan 9, 2010 · Viewed 103.5k times · Source

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

Answer

Myles picture Myles · Jan 9, 2010

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

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