Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Search for a tag

Tags:

vim

search

tags

I know approximately what the tag I'm looking for is. I know maybe a substring. Is there a fuzzyfinder-like plugin that lets me search through tags? For whatever reason, fuzzyfinder's tag mode hangs on me whenever I type :FufTag<CR>.

like image 497
Oliver Zheng Avatar asked Feb 10 '11 21:02

Oliver Zheng


2 Answers

No need for a plugin. You can tell Vim to use a regular expression to find the relevant tag.

:tselect /pattern

See also :help tag-regexp.

like image 82
jamessan Avatar answered Oct 14 '22 00:10

jamessan


You may want to try unite.vim, it is like FuzzyFinder but can search for various of things like file, buffer, tags... You can also add your own things with plugins (see https://github.com/Shougo/unite.vim/wiki/unite-plugins for full list). There is tags plugins which search the whole tag file so you can jump in functions in different files, or you can use outline plugin for quick navigation in one file.

like image 29
tungd Avatar answered Oct 14 '22 00:10

tungd