On Thursday, September 11, 2014 5:10:22 AM UTC-5, xavier jmlucjav wrote:
> Hi,
> 
> 
> I recently cleaned up the layout of my .vimrc. I have this in it;
> 
> set foldlevel=99
> set foldmethod=syntax
> 
> let vimsyn_folding='af'       " Vim script
> ...
> 
> set modelines=2
> " vim:foldmethod=marker:foldlevel=0
> 
> 
> Now, when I open .vimrc, all folds are closed, good. I open a fold, move to 
> another buffer, come back...and all folds are closed again, very annoying. I 
> cannot figure out what is causing this, any ideas?
> 

Try setting the 'hidden' so that Vim does not re-read the file when you switch 
buffers. This option prevents that the buffer is unloaded when you switch 
buffers.

Or use multiple windows and/or tab pages to accomplish the same thing.

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to