I use something like this: 1,40 fo but I think is not the most efficient way.
What’s yours?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I use
foldmethod=markerand have mappings to enter<!-- {{{ -->and<!-- }}} -->where I want the fold to start and end. I put the start marker on the line with the opening block tag like:so when it’s folded I immediately see what the fold contains without the need to add extra comment.
For CSS it’s even easier, I just use
foldmarker={,}and all definitions are automagically folded showing me just a very clear list of all classes, tags and ids which I can open just when I need them. Actually all my CSS files have this line at the very end:You can also visually select the region you want to fold and press
zfif you prefer.