[xdebug-general] Vim foldexpr for text profile output

From: Ethan Winn <public[@]destratify.com>
Date: Mon, 25 Sep 2006 20:38:29 -0400

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 Tue Sep 26 2006 - 02:38:32 BST

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