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