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 <n...@bitwi.se> wrote:
> > > On Wed, Mar 2, 2011 at 18:34, ZyX <zyx....@gmail.com> 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.

Attachment: signature.asc
Description: This is a digitally signed message part.

Raspunde prin e-mail lui