zf{motion}
creates a fold that covers the text that "motion" would cover.{count}zF
creates a fold that covers "count" lines.{range}fo[ld]
creates a fold for the lines in the provided range.All three commands are valid only when foldmethod
is set to manual
or marker
. In the case of the former fold method, the newly-created folds are closed immediately.