When I initially open a markdown file in vim, all the headings are folded.
I drill down through the headings to access a line.
I switch to another buffer, read a line, and then switch back to the previous buffer.
All the markdown headings are refolded :(
I have to drill down through the headings again to access the line I had unfolded.
Sometimes I need to reopen 2 or 3 headings.
Is there a way to keep the markdown headings open when switching buffers?
Or do you know of a markdown plugin with this desirable behavior?
Thank you.
You received this message because you are subscribed to a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/scMXtFY6upk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_use+u...@googlegroups.com.
The only purpose of my small .vimrc file is folding.
It sources the markdown.vim file, which was copied from https://gist.github.com/vim-voom/1035030
The problem was solved by removing line 32 of https://gist.github.com/vim-voom/1035030
setl foldlevel=0
Now vim preserves folded state when switching buffers.
Thank you for your patients.