tags 's kind

20 views
Skip to first unread message

王军

unread,
Nov 14, 2012, 9:03:32 AM11/14/12
to vim...@googlegroups.com

Hi:

         When we use <c-]>,sometime it will prompt:

 

         nr pri kind tag                  file

           1 F         f    mch_delay                os_amiga.c

                            mch_delay(msec, ignoreinput)

           2 F         f    mch_delay                os_msdos.c

                            mch_delay(msec, ignoreinput)

           3 F         f    mch_delay                os_unix.c

                            mch_delay(msec, ignoreinput)

         Enter nr of choice (<CR> to abort):

        

         (h tag-matchlist)

 

         What the ‘f’ means?

 

         Sometimes it is ‘n’,’c’,’r’ or ‘p’.what those means?

        

         Where can we found it’s help?

Ben Fritz

unread,
Nov 14, 2012, 9:39:04 AM11/14/12
to vim...@googlegroups.com
I don't know about n, c, or r, but I'm pretty sure f and p are "function" and "prototype".

The ctags documentation probably has details on kind; it is contained in the generated tags file. I'm not sure whether Vim does anywhere.

Gary Johnson

unread,
Nov 14, 2012, 12:06:12 PM11/14/12
to vim...@googlegroups.com
At a shell prompt, execute

ctags --list-kinds

If you are interested in the kinds of only one language, you can
specify that, too, as this example for C:

ctags --list-kinds=c

To see the list of languages supported, execute

ctags --list-languages

For more help, use

ctags --help | less

Regards,
Gary

Reply all
Reply to author
Forward
0 new messages