Fold state voided on buffer switching

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Fold state voided on buffer switching

Fabien Meghazi-2
Hi all,

When I'm working on a buffer with folding, let's say I unfold a
function, then I switch to another buffer and switch back to the
original buffer, the unfolded function is folded back.

Is there a way to prevent loosing the folding state when cycling buffers ?

--
Fabien Meghazi

Website: http://www.amigrave.com
Email: [hidden email]
IM: [hidden email]

--
--
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.


Reply | Threaded
Open this post in threaded view
|

Re: Fold state voided on buffer switching

Benjamin Fritz
On Wednesday, August 14, 2013 4:53:16 AM UTC-5, Fabien Meghazi wrote:

> Hi all,
>
>
>
> When I'm working on a buffer with folding, let's say I unfold a
>
> function, then I switch to another buffer and switch back to the
>
> original buffer, the unfolded function is folded back.
>
>
>
> Is there a way to prevent loosing the folding state when cycling buffers ?
>

:he :mkview

Some tips for making it automatic: http://vim.wikia.com/wiki/Make_views_automatic

--
--
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.


Reply | Threaded
Open this post in threaded view
|

Re: Fold state voided on buffer switching

Christian Brabandt
In reply to this post by Fabien Meghazi-2
Hi Fabien!

On Mi, 14 Aug 2013, Fabien Meghazi wrote:

> Hi all,
>
> When I'm working on a buffer with folding, let's say I unfold a
> function, then I switch to another buffer and switch back to the
> original buffer, the unfolded function is folded back.
>
> Is there a way to prevent loosing the folding state when cycling buffers ?

I think, :set hidden should prevent this.

Mit freundlichen Grüßen
Christian
--
Die Menge wird sich immer denen zuwenden, die ihr von absoluten
Wahrheiten erzählen, und wird die anderen verachten.
                -- Gustave Le Bon (Psychologie der Massen)

--
--
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Fold state voided on buffer switching

Fabien Meghazi-2
On Wed, Aug 14, 2013 at 10:54 PM, Christian Brabandt <[hidden email]> wrote:
>> Is there a way to prevent loosing the folding state when cycling buffers ?
>
> I think, :set hidden should prevent this.

Thanks Christian, the hidden option did the trick!


--
Fabien Meghazi

Website: http://www.amigrave.com
Email: [hidden email]
IM: [hidden email]

--
--
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.