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

From: Derick Rethans <derick[@]xdebug.org>
Date: Mon, 2 Oct 2006 20:22:43 +0200 (CEST)

On Wed, 27 Sep 2006, Ethan Winn wrote:

> 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\"))

Thanks! I added this as part of my trace file colorization script
(xt.vim) in the Xdebug repository with some small changes.

regards,
Derick

-- 
Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.org
Received on Mon Oct 02 2006 - 20:23:00 BST