简体   繁体   中英

Comment in vimrc

I commented a part of a line using double quotes in my vimrc file, but that part of the line is not commented as can be seen at the bottom of the screenshot below:

在此处输入图像描述

Any idea why is this happening?

Please, read :h:comment in the embedded help system. To quote the most relevant part:

It is not possible to add a comment to a shell command "::cmd" or to the ":map" command and a few others (mainly commands that expect expressions) that see the '"' as part of their argument:

...A long list follows...

So just don't.

vim's docs say the following:

It is not possible to add a comment to a shell command "::cmd" or to the ",map" command and a few others. because they see the '"'' as part of their argument. This is mentioned where the command is explained.

Just put your comments on preceding lines.

vim's docs are here, for example.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM