Confusion about vim folding - how to disable?

lyuba picture lyuba · Feb 16, 2011 · Viewed 41.6k times · Source
  1. When I open the file it looks like this: enter image description here or even this enter image description here
  2. When I open all folds, they are closed again when I navigated to another buffer and came back.
  3. To be able to work with it, I have to apply zR each time when opening a buffer.

I have these set up in .vimrc:

set foldlevelstart=99
set foldlevel=99

Please point me on how to disable the folding, or at least making the navigation to another buffer not to close the opened ones.

Answer

zeuxcg picture zeuxcg · Feb 16, 2011

You're not alone.

set nofoldenable    " disable folding