Tuesday, May 21, 2013

Re: how to set quickfix to get tags infomation

what I want is going in to the function and then has the ability to get out of it.  so tags is good. But no quickfix
When there are a lot of matches. cscope will put all the info to the quickfix, which is good for me, but seems no something like tag stack to get in the function and get out.  ( I haven't try c in cscope. What I tried it verilog )

btw: after cscope is launched in vim, ( e.g. cs find s ... ), and this put some info to quickfix.  After this, every time, at least :tag xxx will put info to quickfix. Interesting.

btw2: there seems no way for :tag?? command to find the place where this function is called. Only cscope is able to do that, right?

thanks


On Tue, May 21, 2013 at 10:38 PM, Ben Fritz <fritzophrenic@gmail.com> wrote:
On Tuesday, May 21, 2013 3:53:11 AM UTC-5, Steve liu wrote:
> I'm enable ctags.
>
> And if a lot of tags is matching when I stroke Ctrl+]. Some info will be shown.
> I want those info goes into quickfix window.
>
>
> how to do that.
>

There is no built-in way.

But you can get a list of matching tags using the taglist() function, which you could use to build a quickfix list and set it using the setqflist() function.

Or, if all you want is the ability to jump to more than just the first tag, you can set the 'cscopetag' option. This option causes CTRL-] to do :cstag instead of :tag. :cstag will act like :tjump if you aren't using cscope, which will present you with a list of matches and ask you to select one if there are multiple matches.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.





--
steve
<sliu.119@gmail.com>

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
 
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: