bill lam wrote:

> Втр, 17 Авг 2010, Sven Richter писал(а):
>> 2. When i try to follow a method with CTRL+] it works, but jumps into
>> the first found method.
>> For instance, almost every class has a method called:
>> fetchById()
>> and i want to get into the class that is being called and not the
>> first found one.
>
> You may try using :ts or g]  {not in VI}

The SmartTags plugin [1] tries to find the correct tag depending on
context when functions are overloaded. Plugin uses heuristics
which can get it wrong sometimes since C++ is notoriously hard to parse.

The ideal solution would be to use information from the compiler itself
so it's guaranteed to be exact. Hopefully this will be eventually possible
with gcc-4.5 plugins or llvm/clang++.

I've seen demos of gccsense [2] which uses gcc-4.5 information to do
exact completion in emacs or Vim and it looks promising. I have not
tried to used it yet.  I suppose the kind of things could be done to
generate exact tags from compiler & linker.

[1] 
http://groups.google.com/group/vim_dev/browse_thread/thread/9eae33b93fa50884/8693c8759687df22
[2] http://cx4a.org/software/gccsense/

-- Dominique

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to