On Thu, Feb 08, 2007 at 01:30:37PM +0100, Thomas Michael Engelke wrote:
> Hello!
> 
> I am using the following mapping:
> 
> map <F4> [I:let nr = input("Match: ")<Bar>exe "normal " . nr ."[\t"<CR>
I've now implemented a small outline utility based on regex
At the moment it opens another window and shows a list similar to
yours. But the benefit is that its a vim buffer so you can use search to
goto the line you want. (Pressing Enter moves you to the line)
Not perfect yet but I really like it. Shouldn't be too hard to make the
other buffer beeing permanent.
Advantage over grep and loclist : Spaces are kept, no filename (is the same
everywhere though) thus you get a reeally nice listing.

Example of a small php file:
outline (just a stupid template file here)

    3  class Test{
    5    public function __construct(<++>)
   10    public function __destruct()

If you or somebody else is interested I'll load it up on my server

Its really convinient becayse you can use :g/regex/d to filter the list again.

Marc

Reply via email to