开发者

vim-7 with ctags

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 sa开发者_如何学Pythonme 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.


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>


Use g] (g$ on french azerty keyboards) to display a list of definitions.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜