sponsor Vim development Vim logo Vim Book Ad

basic Tip #300: Making a tags file for IDL (Interactive Data Language)

 tip karma   Rating 4/1, Viewed by 728 

created:   August 6, 2002 6:59      complexity:   basic
author:   Shawn Young      as of Vim:   5.7

I have recently began using the tags features of vim (:help tags) with my fortran codes and come to appreciate their power.  I also do a lot of coding in IDL (Interactive Data Language), but found that ctags did not have native support for IDL.  If you take the time you can learn how to get ctags to support IDL, but I found, after a search of usenet, that someone else has already done this and written a perl script called idltags.  It is part of an emacs package (is anyone still reading?) that you need to download, called idlwave, which is located at:
                      http://idlwave.org/
and currently (I don't know if this will change) the direct download link is
                      http://idlwave.org/download/idlwave.tar.gz
In the usenet pages the maintainer, JD Smith, was suggesting that idlwave had outgrown idltags and was not sure it was still needed, so I don't know how long it will be available.

 rate this tip  Life Changing Helpful Unfulfilling 

<<Open file under cursor. | Edit files in path, or related. >>

Additional Notes

Shawn, August 7, 2002 10:37
JD Smith has updated his web page to make idltags a separate download to make it available specifically for vi users.  The new link is at

        http://idlwave.org/download/idltags
[email protected], December 10, 2002 15:20
It's actually quite easy to add support for IDL into ctags. With Exuberant CTags, all you
need is to put the following in your .ctags file:

--langdef=IDL
--langmap=IDL:.pro
--regex-IDL=/^pro[ \t]+([a-zA-Z0-9_:]+)/\1/p,procedure/i
--regex-IDL=/^function[ \t]+([a-zA-Z0-9_:]+)/\1/f,function/i

and that's enough to get IDL procedures and functions into your tags files.
If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to [email protected] after searching the archive. Help Bram help Uganda.
Sponsored by Web Concept Group Inc. SourceForge Logo