Just adding one more to make it complete to the point of discussion.
To enable code folding:
:set foldenable
or in short, :set fen
To disable code folding:
:set nofoldenable
or in short, :set nofen
Once you enable codefolding, you will have all the commands like zf,zo etc
at your wish according to the setting of :set fdm=xxxx
where typical values are expr,syntax,manual etc.