How to disable automatic comment insertion in Vim

How to disable automatic comment insertion in Vim?
asked Jan 21, 2013 by forum (2,150 points)

1 Answer

 
Best answer

Add to ~/.vimrc:

au FileType c,cpp setlocal comments-=:// comments+=f://

More: http://vim.wikia.com/wiki/Disable_automatic_comment_insertion

answered Jan 21, 2013 by anonymous
selected Jan 22, 2013 by SA

Please log in or register to answer this question.

Related questions

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...