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

Re: [PATCH] foldexpr for help files

Expand Messages
  • Nikolai Weibull
    ... Bram, can you please weigh in on this? Thanks! -- You received this message from the vim_dev maillist. Do not top-post! Type your reply below the text
    Message 1 of 7 , Aug 3, 2011
    View Source
    • 0 Attachment
      On Sat, Mar 12, 2011 at 00:08, Nikolai Weibull <now@...> wrote:
      > On Wed, Mar 2, 2011 at 18:34, ZyX <zyx.vim@...> wrote:
      >> The following patch adds foldexpr option that will fold sections separated by
      >> sequences of `=' (foldlevel=1) and `-' (foldlevel=2).
      >
      > What’s the general practice for this?  Do we set foldexpr from
      > ftplugin files, or is that up to the user to add to after/ftplugin?

      Bram, can you please weigh in on this?

      Thanks!

      --
      You received this message from the "vim_dev" 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
    • Bram Moolenaar
      ... Only when folding is really something that is a logical thing to use for a certain filetype should it be included by default. In nearly all situations it
      Message 2 of 7 , Aug 4, 2011
      View Source
      • 0 Attachment
        Nikolai Weibull wrote:

        > On Sat, Mar 12, 2011 at 00:08, Nikolai Weibull <now@...> wrote:
        > > On Wed, Mar 2, 2011 at 18:34, ZyX <zyx.vim@...> wrote:
        > >> The following patch adds foldexpr option that will fold sections separated by
        > >> sequences of `=' (foldlevel=1) and `-' (foldlevel=2).
        > >
        > > What’s the general practice for this?  Do we set foldexpr from
        > > ftplugin files, or is that up to the user to add to after/ftplugin?
        >
        > Bram, can you please weigh in on this?

        Only when folding is really something that is a logical thing to use for
        a certain filetype should it be included by default. In nearly all
        situations it should be an optional feature that is enabled by the user.

        Help files are best viewed without folding. There is a table of
        contents with tags at the start. Folding might give a bit of an
        overview, but it requires opening and closing folds. Perhaps some
        people will like it.

        --
        FATHER: We are here today to witness the union of two young people in the
        joyful bond of the holy wedlock. Unfortunately, one of them, my son
        Herbert, has just fallen to his death.
        [Murmurs from CROWD; the BRIDE smiles with relief, coughs.]
        "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

        /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
        /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
        \\\ an exciting new programming language -- http://www.Zimbu.org ///
        \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

        --
        You received this message from the "vim_dev" 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
      • ZyX
        Reply to message «Re: [PATCH] foldexpr for help files», sent 19:31:35 04 August 2011, Thursday ... I use it for editing help files (don t remember why I
        Message 3 of 7 , Aug 4, 2011
        View Source
        • 0 Attachment
          Reply to message «Re: [PATCH] foldexpr for help files»,
          sent 19:31:35 04 August 2011, Thursday
          by Bram Moolenaar:

          > Help files are best viewed without folding. There is a table of
          > contents with tags at the start. Folding might give a bit of an
          > overview, but it requires opening and closing folds. Perhaps some
          > people will like it.
          I use it for editing help files (don't remember why I touched &fdm when writing
          a patch, I personally set it only when help file is editable and not in a help
          buffer). I think it will be good if you remove everything that mentions
          foldmethod and include this patch.

          Original message:
          > Nikolai Weibull wrote:
          > > On Sat, Mar 12, 2011 at 00:08, Nikolai Weibull <now@...> wrote:
          > > > On Wed, Mar 2, 2011 at 18:34, ZyX <zyx.vim@...> wrote:
          > > >> The following patch adds foldexpr option that will fold sections
          > > >> separated by sequences of `=' (foldlevel=1) and `-' (foldlevel=2).
          > > >
          > > > What’s the general practice for this? Do we set foldexpr from
          > > > ftplugin files, or is that up to the user to add to after/ftplugin?
          > >
          > > Bram, can you please weigh in on this?
          >
          > Only when folding is really something that is a logical thing to use for
          > a certain filetype should it be included by default. In nearly all
          > situations it should be an optional feature that is enabled by the user.
          >
          > Help files are best viewed without folding. There is a table of
          > contents with tags at the start. Folding might give a bit of an
          > overview, but it requires opening and closing folds. Perhaps some
          > people will like it.
        Your message has been successfully submitted and would be delivered to recipients shortly.