www.ShoppingPodder.com

Leading Computer Shopping,
News and information


Part of the Identityscape.com network...

getxfactor.com jmoodmusic.com smartbusinesschoices.com mintdepot.com lowfaresalways.com evangelicalview.com shoppingpodder.com soproudlywehail.com webnews.ws currenthumor.com

 

 

Vim: Ctrl-]
   Shopping Podder - the Best of Computer Postings! Forum Index -> Computer - Editors  
View previous topic :: View next topic  
Author Message
gbo
Guest






PostPosted: Thu Oct 23, 2008 2:21 pm    Post subject: Vim: Ctrl-] Reply with 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)
Back to top
Dan Price
Guest






PostPosted: Thu Oct 23, 2008 4:20 pm    Post subject: Re: Vim: Ctrl-] Reply with quote

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






PostPosted: Sat Oct 25, 2008 6:17 pm    Post subject: Re: Vim: Ctrl-] Reply with quote

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
Display posts from previous:   
   Shopping Podder - the Best of Computer Postings! Forum Index -> Computer - Editors  
Page 1 of 1
All times are GMT

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum