I have problems with automated splits and folding. In my ~/.gvimrc file, at the very end, I have the command vsplit
, so that when I'm using gvim as opposed to vim, it opens with two panes. The problem occurs when I open a file that would normally be folded via the command line, as in gvim example.cpp
. This opens the example.cpp file in two panes; however, the first pane is folded while the second is not. It's a minor annoyance, but I wondered if anyone had a suggestion to get the second (or all) buffers to be folded when the window first appears.
If it makes a difference, I use set foldmethod=indent
in my ~/.vimrc file, and my version is 7.1.