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 can add
set foldlevelstart=99
to your .vimrc file, and it will start editing any new file with all folds open.