In my .vimrc I\'ve put set foldmethod=syntax to enable folding of methods etc. However, I don\'t like the default that everytime I open a file, the who
.vimrc
set foldmethod=syntax
You could map it to keys to enable it. For example,
nmap ,f :set foldmethod=syntax
Then while in normal mode hit the ",f" key combination