ctags+taglist for .cu (CUDA) files

ctags, cuda, exuberant-ctags, vim

Solution

Since CUDA C/C++ is based on C++ you can just use C++ mode. You can add the language map using `--langmap=c++:+.cu`.

Problem

I use the vim editor (on Ubuntu). Recently, I have been working with large cuda projects and hence would like to utilize the ctags utility for code browsing. The list of supported languages for exuberant-ctags [here] (http://ctags.sourceforge.net/languages.html) doesnt contain CUDA as of yet. If anyone knows a tweak to do the same, I'd really appreciate the help. Thanks EDIT 1: I found the following temporary fix. To create the tag file for CUDA files, use ctags with the following option (assuming your current directory contains all your cuda files); $ctags --langmap=c++:+.cu *

Original source