Thursday, December 27, 2012

Re: Fold expression called too often

On 2012–12–27 Vlad Irnov wrote:

> > The problem is that Vim calls your foldexpr once for every line,
> > but for
>
> The problem, as Christian noted in another post, is that "gwip" is
> performed in many steps and each step triggers folding update.

Indeed.

> If it works, then it has other applications, such as ignoring folds in
> fenced regions.

I did some tests using your expression, see my answer to Christian.

Marco

No comments: