Mark Woodward wrote:
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?
I suggest looking into sessions and views, also perhaps "set hidden" will do what you want.
Regards, Chip Campbell