Reputation: 6474
running VIM-7.0.237 on CentOS-5.6. I have a large C code base with tags generated with ctags-5.6, there are functions with the same name defined in several places and I remember back when I used vim-6.3, I could jump over those multiple definitions easily -- VIM used to suggest me what definition I want to jump at. Now with vim-7 it gives me only first.
Is there a way to have a old-style behavior? Thanks.
PS. I have a default VIM configuration.
Upvotes: 3
Views: 426
Reputation: 196556
Use g]
(g$
on french azerty keyboards) to display a list of definitions.
Upvotes: 0
Reputation: 59287
You can either precede the command with a count to jump to a specific match or use
:ts {identifier}
. It will list the tags available for the given identifier.
You may find the ctrlrctrlw command (et similars) useful to insert the word under cursor. A map may help you with it.
nnoremap \] :ts <c-r><c-w><CR>
Upvotes: 1