如何在Vim的配置文件“ .vimrc”中添加注释?


Answers:


379

要注释的文本左侧的双引号。

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


36
而且它不应该关闭"
Arslan Ali

它不应该是内联注释,因为您可以使用内联(更好的是:在行末注释)command foo |" my comment (需要用于命令分离的管道)
Hartmut P.


7

同上。使用双引号开始注释,不使用右引号。

例:

设置“高亮当前行”

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.