2009/10/5 Dominique PellĂ© <[email protected]>:
>
> Mikalai Chaly wrote:
>
>> Hello, vim developers.
>>
>> I'm trying to figure out how "jump to tag" function can be improved.
>> In C# project with multiple overridden virtual methods original Ctrl-]
>> behaviour is not very useful.
>>
>> So, I've reviewed todo.txt file and found the following action item marked
>> with "8":
>>
>> "Use a mechanism similar to omni completion to figure out the kind of tab
>> for CTRL-] and jump to the appropriate matching tag (if there are
>> several)."
>>
>> Is there a way to find out who is working on this, if any? I'd like to help
>> to implement
>> and/or test this functionality.
>>
>> Sincerely,
>> Mikalai
>
> I'm not aware of anybody working on it.
>
> In my ~/.vimrc, I have the following map...
>
> noremap <c-]> g<c-]>
>
> ... which helps a bit. When CTRL-] has multiple matches
> (overloaded functions, derivation...) it will show a list of all
> matches at let you select the one you want, rather than
> jumping to the first match.
>
> See :help g_CTRL-]

I do the samething, and when the list is more than 1 page (as it is
often), it is hard to find the relevant match, so I created a small
plugin called tagselect to show the output in a new buffer. You can
then scroll and search like any buffer and press enter to select.

http://www.vim.org//script.php?script_id=1282

Note that the plugin executes the :ts command again to enter the
selected tag number, but because of a vim bug, the command doesn't
work if executed using :silent, so the list scrolls in front of you,
but it works.

-- 
Thanks,
Hari

>
> Regards
> -- Dominique
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui