On Sat, Mar 12, 2011 at 12:32:03AM +0100, Peter Odding wrote: > >> The following patch adds foldexpr option that will fold sections separated > >> by > >> sequences of `=' (foldlevel=1) and `-' (foldlevel=2). > > Just to confirm: The patch works great, thanks ZyX! > > > 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? > > I thought the point of /after/ftplugin/ was for users to be able to > override unwanted settings in scripts under /ftplugin/? > > Either way I'd like for this patch to be included because it clearly > adds value for people who like text folding (like me). Also people that > don't like text folding probably won't have it enabled anyway and thus > won't be bothered by the addition.
Folding is actually enabled by default. The only saving grace for not completely confusing new users is that 'foldmethod'/'foldexpr' are typically set by ftplugins (or syntax files for syntax-based folding). Of course, those are commonly the first things that get enabled. -- James GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]>
signature.asc
Description: Digital signature
