131419Re: How to show custom taglist in window like :tag or :ptag
- May 31 11:01 AMOn Tuesday, May 29, 2012 9:38:16 PM UTC-5, stevenfrog wrote:
> I use taglist() to get a tag list. Then I did some filter, just leaveI don't understand what you're trying to achieve.
> some useful one like this:
> let tttlist = taglist("^List$")
> let newtttlist = 
> for item in tttlist
> if item['kind'] == 'i' || item['kind'] == 'c'
> call add(newtttlist, item)
> echo newtttlist
> But how to show them like :tag and :ptag in vim?
Assuming your taglist contains tags named "List" your code will echo them to the screen. Which tag do you wish to jump to? If you have the tag name in a variable, like tag_i_want_to_jump_to, you can jump to it with something like:
:exec "tag" tag_i_want_to_jump_to
If you want to do something else, please try to tell us SPECIFICALLY what you are trying to do, what you tried, what you expected to happen, and what happened instead.
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
- << Previous post in topic Next post in topic >>