How to Fold in Vim

· 78 words · 1 min

The fold operator is z(when a paper is folded, it is shaped like the letter z).

Trigger Fold Action

In Visual Mode, use v to select the codes you want to fold, and press zf to fold them.

Vim