I have not used Verilog or SystemVerilog myself, but doing
"ctags --list-languages" it appears that Exuberant ctags
supports at least Verilog:
$ ctags --version
Exuberant Ctags 5.7, Copyright (C) 1996-2007 Darren Hiebert
Compiled: Mar 12 2008, 08:23:02
Addresses: <dhie...@users.sourceforge.net>, http://ctags.sourceforge.net
Optional compiled features: +wildcards, +regex
$ ctags --list-languages
Asm
Asp
Awk
Basic
BETA
C
C++
C#
Cobol
Eiffel
Erlang
Fortran
HTML
Java
JavaScript
Lisp
Lua
Make
Pascal
Perl
PHP
Python
REXX
Ruby
Scheme
Sh
SLang
SML
SQL
Tcl
Vera
Verilog <---
Vim
YACC
-- Dominique
When looking for a program to build tag files, always check Exuberant
Ctags first. It's almost unbelievable how many languages it supports,
and, to boot, even if your language isn't supported out of the box, you
can (if you're clever enough) add, once and for all, configuration
statements to define how to support it.
Best regards,
Tony.
--
It has been said that man is a rational animal. All my life I have
been searching for evidence which could support this.
-- Bertrand Russell
Does the reply to "ctags --version" include "Exuberant Ctags"?
Best regards,
Tony.
--
Cynic, n.:
A blackguard whose faulty vision sees things as they are, not
as they ought to be. Hence the custom among the Scythians of plucking
out a cynic's eyes to improve his vision.
-- Ambrose Bierce, "The Devil's Dictionary"
see
:help :tselect
:help :stselect
>
> Is there a way I can go to the definition of a tag and it opens up in
> a new tab (especially useful if the definition is in a different
> file)? If I do CTRl-W CTRL-] it opens up in a new split window.
Any ex-command which opens a new window can be made to open a new tab
instead, by prefixing it with ":tab". So ":tab tsel something" will open
a new tab for the file containing "something", after showing you all
occurrences of that tag and prompting you which one you want.
Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
92. It takes you two hours to check all 14 of your mailboxes.
:help <cword>
though it's awkard and you need to use exec as well. Perhaps a mapping
like this would do the trick for you:
:map <C-]> :exec "tab tag ".expand('<lt>cword>')<CR>
You'll get a lot of tabs very quickly though! Perhaps mapping <C-w><C-]>
would be smarter so you can get a new tab only when you want one. I find
usually <C-]> along with <C-t> or <C-o> is better than <C-w><C-]>.
Ben.
O, and in addition to my previous post, there kinda is a register for
this...well, you access it like a register! See
:help c_CTRL-R_CTRL-F
So an alternative to the mapping I wrote in my last post would be
:map <C-]> :tab tag <C-R><C-W><CR>
The comments in my last post about it still apply, of course.
Ben.