Sample Header Ad - 728x90

vimrc - how to block comment?

18 votes
5 answers
36391 views
I don't want to comment lines of text in a text file or code. I am looking for inserting block comments in a *.vimrc* file. To insert a single line comment " is used, for example: " remove spaces and tabs as well at the end of line automatically while saving autocmd BufWritePre * :%s/\s\+$//e Now I've got a relatively large amount of settings/configs/plugins collected over the years after browsing through the internet to add cool features. I'm looking to add some large comment blocks to my .vimrc file. Adding " to each line is a option but I am looking for a block comment syntax. Similar to /**/ in C. // is identical to " /* */ is identical to ___________ ? Searching Unix.SE, SO and googling didn't help much.
Asked by mtk (28478 rep)
Jun 3, 2013, 07:37 AM
Last activity: Dec 15, 2017, 04:22 PM