Andreas Bernauer wrote: > poireau wrote: >> I'm currently using vim with exuberant ctags and I love it, except for one >> thing: if I have to functions named foo, say foo(int) and foo(), vim does >> not make any distinction between them and jumps to one of them randomly when >> C-] is pressed. >> >> Is there a way to make vim more intelligent? I'm open to using something >> else than ctags, as long as it works better :) > > You could consider cscope http://cscope.sourceforge.net/ > Works great for me.
cscope is good, but it does not solve the problem of jumping to the right function when overloading functions. As far as I know, there is unfortunately no solution yet for this. It's been discussed in this mailing list a couple of times. It's the feature that I would like most when developing in c++ with Vim. Until something exists, I've put the following line in my ~/.vimrc... noremap <c-]> g<c-]> ... so that pressing <c-]> shows all the matches and I can select the one I want manually. -- Dominique --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
