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
set nofoldenable
Adding this to your .vimrc will temporarily disable folding when you open the file, but folds can still be restored with zc
zc