Ctrl-T does not work!

940 views
Skip to first unread message

Steven Woody

unread,
Sep 12, 2009, 12:38:32 PM9/12/09
to Vim
Hi,

I am using cscope to browe c sources in gvim.  According to the cscope manual, when I jump into a symbol, I could jump back by pressing 'Ctrl-T'.  But I always get "at bottom of tag stack". Could anyone here can here me how to check what's the cause of the issue?

Thanks.

--
Life is the only flaw in an otherwise perfect nonexistence
   -- Schopenhauer

narke
public key at http://subkeys.pgp.net:11371 (narke...@gmail.com)

Gary Johnson

unread,
Sep 12, 2009, 1:34:07 PM9/12/09
to vim...@googlegroups.com
On 2009-09-13, Steven Woody wrote:
> Hi,
>
> I am using cscope to browe c sources in gvim.  According to the
> cscope manual, when I jump into a symbol, I could jump back by
> pressing 'Ctrl-T'.  But I always get "at bottom of tag stack".
> Could anyone here can here me how to check what's the cause of the
> issue?

"Ctrl-T" is mentioned in two places on the cscope help page,
if_cscope.txt. The first one has this note:

(Please note however, that you don't actually jump to a cscope
tag simply by doing Ctrl-] or :tag without remapping these
commands or setting an option. See the remaining sections on
how the cscope interface works and for suggested use.)

There are a number of ways to configure cscope in vim to get the
behavior you prefer, including being able to put the results into
the tag stack or a quickfix list, so I'd suggest reading all of
":help cscope" and configuring it the way you want.

Regards,
Gary


Magnus Leuthner

unread,
Sep 12, 2009, 1:16:05 PM9/12/09
to vim...@googlegroups.com
On Sat, Sep 12, 2009 at 5:38 PM, Steven Woody <narke...@gmail.com> wrote:
> Hi,
> I am using cscope to browe c sources in gvim.  According to the cscope
> manual, when I jump into a symbol, I could jump back by pressing 'Ctrl-T'.
>  But I always get "at bottom of tag stack". Could anyone here can here me
> how to check what's the cause of the issue?
> Thanks.
>
You need to use CTRL+] to jump to the definition of that symbol after
you have created the ctags file using ctags from the exuberant-ctags
package (on Debian). Then CTRL+T should bring you back to where you
were before. If you didn't do the jump in the first place, the
jump-back-stack will be empty and that's the message you would see.

> Life is the only flaw in an otherwise perfect nonexistence
>    -- Schopenhauer

I hate and love that guy ;)

Mac

Ben Fritz

unread,
Sep 12, 2009, 9:50:09 PM9/12/09
to vim_use


On Sep 12, 11:38 am, Steven Woody <narkewo...@gmail.com> wrote:
> Hi,
> I am using cscope to browe c sources in gvim.  According to the cscope
> manual, when I jump into a symbol, I could jump back by pressing 'Ctrl-T'.
>  But I always get "at bottom of tag stack". Could anyone here can here me
> how to check what's the cause of the issue?
>

Well, you can always use CTRL-O instead.

Steven Woody

unread,
Sep 12, 2009, 10:36:16 PM9/12/09
to vim...@googlegroups.com, Vim
Thanks.  Both CTRL-O and 'set cscopetag' work!
Reply all
Reply to author
Forward
0 new messages