Mark Woodward wrote:
Hi all,
The problem I'm having is I'll open all folds in a buffer, switch
buffers, go back to the original and all folds are closed again. Is
there a way to stop this? ie Vim remembers the 'fold state' of the
buffer when I return to it? So if folds were open when I left they'll
be open when I return? Conversely if they were closed when I left
they'll be closed when I return?
Vim 7
Ubuntu Dapper
thanks,
Well, it should be possible, but I don't know how. Recently I saw the
following:
Viewed one file with folds in gvim (FWIW, it was Vim 7.0.017, "huge"
version with GTK2 GUI, running on SuSE Linux 9.3). Opened one fold. ":q"
the file. Then came back to it. The one fold was still open.
I source the vimrc_example.vim in my vimrc. (Do you?) Then if you do,
maybe we have different settings or autocommands? (AFAIK, I have nothing
folds-related in my vimrc, other than what might be set by the
vimrc_example.vim)
Best regards,
Tony.