So here is my problem. I get violent ctags working with Vim and it works great, most of the time. One thing that still annoys me is when I try to find a function that is called just like the name of a variable. Sometimes I get the correct tag on the first try, sometimes not. After I pulled out a list of alternative tags with :tselect
, it contains a whole bunch of tags to define functions or definitions of variables / assignments. (I am in PHP, so the definitions and assignments are syntactically indistinguishable).
However, I notice that there is a column labeled "kind" that has a value of "f" or "v" for the function and variable, respectively. It seems that I can not find much information about this field, it seems that it can not be precisely standardized or widely used. My question is: can you filter the results of the tag in Vim "good"?
Ideally, by default it will search the entire tag file, but by specifying some additional flag, you can only search for a specific ('f' or 'v') view.
This is such a small problem for me, as it often does not occur, but sometimes these are small problems that really annoy you.
source share