Code folding in Vim

Screen Shot 2013-03-06 at 4.17.00 PM

You can type ‘zo’ to open a fold, or I can just hit the right arrow key on the folded code marker. You can type ‘zc’ to close a fold. You can type ‘zr’ to open all folds. You can type ‘zm’ to close all folds.

Reference