Toon Knapen wrote:

> I'm looking into using ctags in combination with vim and was looking for 
> highlighting the tags in vim. The :help tag-highlight explains how the 
> necessary tags.vim file can be generated. I do have two questions 
> regarding this info however:
> 
> 1) It mentions a (make-) rule to generate a types.vim file from a types 
> file. Am I correct in supposing this 'types' file is actually the tags 
> file ?

There is no tags file stored, the output of ctags is filtered and stored
in types.vim.  Thus the result is a Vim script with syntax commands.

> 2) The ctags command seems not be correct. Whenever I launch Exuberant 
> ctags 5.5.4 with the option '-i=gstuS' I get the error 'Unknown option: 
> -i'. And indeed, the ctags man page does not mention a -i option.

The correct command actually is in src/Makefile:

        ctags --c-kinds=gstu -o- *.[ch] |\
                awk 'BEGIN{printf("syntax keyword Type\t")}\
                        {printf("%s ", $$1)}END{print ""}' > $@


I'll correct the help file.

An exercise for the reader: rewrite the awk commands in Vim script.

-- 
The average life of an organization chart is six months.  You can safely
ignore any order from your boss that would take six months to complete.
                                (Scott Adams - The Dilbert principle)

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to