vimtricks.wiki Concise Vim tricks, one at a time.

How do you configure code folding method in Vim?

Answer

set foldmethod=syntax

Explanation

Set foldmethod to syntax for language-aware folding, indent for indentation-based, or manual for manual control. expr allows custom fold expressions.

Next

How do I visually select a double-quoted string including the quotes themselves?