Fold only comments when file is opened in Vim

Viewed 654

When I am viewing long code files with verbose comments in Vim, I would like to be able to load the files with comments folded but everything else unfolded. The current folding configuration I have in my .vimrc is:

set foldmethod=syntax
set nofoldenable

That way, when I want to start doing folds, I can just start executing z commands. But is there a way to only fold the (block) comments?

1 Answers
Related