Mastering Vim
上QQ阅读APP看书,第一时间看更新

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.