| View previous topic :: View next topic |
| Author |
Message |
gbo Guest
|
Posted: Thu Oct 23, 2008 2:21 pm Post subject: Vim: Ctrl-] |
|
|
Dear vim experts,
I have vim with ctags and a question:
on another computer, when I did ctrl-] on a function name, if I had
two matches in ctags, both were displayed in the bottom of the screen
and I could choose the one I wanted to jump to. Now I directly jump to
the first match, without any notice that I had multiple matches. I
prefer the other way, so I always know I have many matches in ctags.
How to configure my current vim for this?
Thanks for your help. Please cc answer by mail if possible.
vim --version
VIM - Vi IMproved 7.0 (2006 May 7, compiled Jan 7 2007 17:44:47) |
|
| |
|
Back to top |
Dan Price Guest
|
Posted: Thu Oct 23, 2008 4:20 pm Post subject: Re: Vim: Ctrl-] |
|
|
On Oct 23, 10:21 am, gbo <Gui...@gmail.com> wrote:
| Quote: | Dear vim experts,
I have vim with ctags and a question:
on another computer, when I did ctrl-] on a function name, if I had
two matches in ctags, both were displayed in the bottom of the screen
and I could choose the one I wanted to jump to. Now I directly jump to
the first match, without any notice that I had multiple matches. I
prefer the other way, so I always know I have many matches in ctags.
How to configure my current vim for this?
Thanks for your help. Please cc answer by mail if possible.
vim --version
VIM - Vi IMproved 7.0 (2006 May 7, compiled Jan 7 2007 17:44:47)
|
By default, ctrl-] jumps to the "best" tag, without asking the user
which tag they would like. By chance are you using the cscope_maps
plugin on one of the computers and not the other? This plugin
instructs vim to use cscope for ctrl-] ; see "cscopetag". I recall
that at one time when I had this activated it provided the behavior
you want. |
|
| |
|
Back to top |
gbo Guest
|
Posted: Sat Oct 25, 2008 6:17 pm Post subject: Re: Vim: Ctrl-] |
|
|
On Oct 23, 5:20 pm, Dan Price <dkpr...@gmail.com> wrote:
| Quote: | On Oct 23, 10:21 am, gbo <Gui...@gmail.com> wrote:
Dear vim experts,
I have vim with ctags and a question:
on another computer, when I did ctrl-] on a function name, if I had
two matches in ctags, both were displayed in the bottom of the screen
and I could choose the one I wanted to jump to. Now I directly jump to
the first match, without any notice that I had multiple matches. I
prefer the other way, so I always know I have many matches in ctags.
How to configure my current vim for this?
Thanks for your help. Please cc answer by mail if possible.
vim --version
VIM - Vi IMproved 7.0 (2006 May 7, compiled Jan 7 2007 17:44:47)
By default, ctrl-] jumps to the "best" tag, without asking the user
which tag they would like. By chance are you using the cscope_maps
plugin on one of the computers and not the other?
|
No, I don't think I was using cscope. I had a look a it and it seems
powerful, but I'd prefer to simply get my previous behavior. Thanks
for your tip anyway.
| Quote: | This plugin
instructs vim to use cscope for ctrl-] ; see "cscopetag". I recall
that at one time when I had this activated it provided the behavior
you want. |
|
|
| |
|
Back to top |
|