Vim logo vim online Vim Book Ad

 Tip #304: fold braces and javadoc

 tip karma   Rating 4/3, Viewed by 518 

created:   August 10, 2002 4:47      complexity:   intermediate
author:   Daniel Bauke      as of Vim:   6.0

If you'd like to have javadoc folded together with areas in braces try that
<pre>
set foldmethod=syntax
set foldenable
syn region foldBraces start=/{/ end=/}/ transparent fold
syn region foldJavadoc start=,/\*\*, end=,\*/, transparent fold keepend
</pre>
and play a bit with:
<pre>
set foldlevel=0
set foldnestmax=10
</pre>
parameters

 rate this tip  Life Changing Helpful Unfulfilling 

<<Statusline Tab Level Function Ruler TVIM | Best of VIM Tips (VIM's best Features) >>

Additional Notes

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to [email protected] after searching the archive. Help Bram help Uganda.
SourceForge Logo