Cheat Logo

Cheat Sheet

Vim Folding

Level: Intermediate
OS:
  • Windows
  • OS X
  • Linux
  • BSD
  • Solaris
Programs:
  • vim

Use V or v to select a few lines then type zf. This will collapse that selection. To open it again, go to the folded line and hit the right arrow.

©2015 Schutt Design (Luke & Noel Schutt).
Contact us using one of our first names at schuttdesign dot net.