Tuesday, May 21, 2013

Re: how to set quickfix to get tags infomation

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.

No comments: