Wednesday, January 23, 2013

Re: fold markers initial state

On 01/22/2013 09:28 PM, Ben Fritz wrote:
> On Tuesday, January 22, 2013 4:52:23 AM UTC-6, Jeroen Budts wrote:
>> Is it somehow possible to specify, for each fold with a marker,
>> the initial state (folded/not folded) for that fold?
>>
>> I seem to remember seeing a plugin in the past which would let you
>> add a - or + after the fold marker, like {{{- and {{{+ to indicate
>> the initial state, but I can't find it anymore.
>
> I've never seen a way to do this.
>
> But you can save information about manually opened or closed folds in
> a "view" file with the :mkview command. See :help :mkview and :help
> 'viewoptions'. There are scripts out there (search vim.wikia.com and
> www.vim.org) to automatically save/restore views on file save/load.
>
I didn't know that a view (and a session) can save the state of the
folds. Since I already use sessions I added 'folds' to my sessionoptions
and that fixes the issue for me.

Thanks!
Jeroen

--
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

No comments: