O'Reilly logo

Mastering Vim by Ruslan Osipov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Folds

One of the most powerful tools Vim provides for navigating large files is folds. Folds allow you to hide portions of the file, either based on some predefined rules or manual fold markers.

This is how animal_farm.py looks with some sections folded:

Method content is hidden, allowing you to view the code from a bird's-eye view.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required