Loading ...
Sorry, an error occurred while loading the content.

Fold state voided on buffer switching

Expand Messages
  • Fabien Meghazi
    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
    Message 1 of 4 , Aug 14, 2013
    • 0 Attachment
      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: agr@...
      IM: amigrave@...

      --
      --
      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 vim_use+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Ben Fritz
      ... 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
      Message 2 of 4 , Aug 14, 2013
      • 0 Attachment
        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 vim_use+unsubscribe@....
        For more options, visit https://groups.google.com/groups/opt_out.
      • Christian Brabandt
        Hi Fabien! ... I think, :set hidden should prevent this. Mit freundlichen Grüßen Christian -- Die Menge wird sich immer denen zuwenden, die ihr von absoluten
        Message 3 of 4 , Aug 14, 2013
        • 0 Attachment
          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 vim_use+unsubscribe@....
          For more options, visit https://groups.google.com/groups/opt_out.
        • Fabien Meghazi
          ... Thanks Christian, the hidden option did the trick! -- Fabien Meghazi Website: http://www.amigrave.com Email: agr@amigrave.com IM: amigrave@gmail.com -- --
          Message 4 of 4 , Aug 18, 2013
          • 0 Attachment
            On Wed, Aug 14, 2013 at 10:54 PM, Christian Brabandt <cblists@...> 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: agr@...
            IM: amigrave@...

            --
            --
            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 vim_use+unsubscribe@....
            For more options, visit https://groups.google.com/groups/opt_out.
          Your message has been successfully submitted and would be delivered to recipients shortly.