[xdebug-general] Re: Vim foldexpr for text profile output

From: Ethan Winn <public[@]destratify.com>
Date: Wed, 27 Sep 2006 00:17:44 -0400

Actually, I debugged a bit and this expression is really better:

autocmd FileType xdebug set
foldexpr=strlen(substitute(substitute(substitute(getline(v:lnum),'\\s>=>','->',\"g\"),'^.\\{21\\}\\(\\s\\+\\)\\?->.*$','\\1',''),'\\s\\s','\
',\"g\"))

On 9/25/06, Ethan Winn <public[@]destratify.com> wrote:
>
> Being on a mac and not wanting to compile kde, I'm using text profiling
> logs and Vim to view them. Using a folding expression helps make things a
> LOT more managable:
>
> :set
> foldexpr=strlen(substitute(getline(v:lnum),'^\\s*[0-9]\.[0-9]*\\s*[0-9]\\(\\s*\\).*$','\\1',\"g\"))
>
> :set foldmethod=expr
>
> Cheers.
>
> Ethan
>
Received on Wed Sep 27 2006 - 06:17:49 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST