set foldmethod=expr set foldexpr=getline(v:lnum)=~'^/\\*\ .*\\*/$'?'>1':'=' set foldexpr=getline(v:lnum)=~'^//\ [A-Z][A-Z]'?'>1':'='