On Thu, Feb 08, 2007 at 01:30:37PM +0100, Thomas Michael Engelke wrote:
> Can anybody give me a hint on how to rewrite the mapping so I get such
> a conext menu instead of a numbered list?

Get the word under the cursor using expand('<cword>')

See completion examples (:h complete-functions) to filter and get the
list. To get the lines you can use getline using with range(0,line('$'))

HTH If you need more info post again.
 Aeh.. Perhaps its faster to get all lines and use the filter()
 function

There is also <c-x><c-l> which completes lines. But this is not exactly
what you want to do...

The "mapping" is done by assigning omnifunc or completefunc omnifunc is
often used by $VIMRUNTIME/**/complet* scripts so completefunc is the
better choice.

Marc

Reply via email to