ctags

How do I generate a ctags file for a docset? (For vim)

I'd like to be able to use ctags to browse the apple iphone sdk docsets with vim. Is there a way to generate a ctags file that links to the docsets in question? I use Objective-C to program for the iPhone, so I ended up using Objective-C Ctags, and changed my commandline to be: ctags -f iPhone.tags -R --langmap="ObjC:.m .h" --fields=+...

Getting ctags to include module qualifiers in the tags file for Erlang code

I'm using Exuberant ctags to index Erlang files. The "tags" file contains functions, but they do not have module qualifiers; so I can't search for "module:function", only "function", which may give several results. Do you know a way to get ctags to include module qualifiers in the tags file? Thanks. ...

ctags does not parse stdio.h properly

I am trying to use ctags with VIM, and I am a newbie to both. In order to test the extent to which ctags could be useful I decided to put it through a very simple test, namely to parse the headers in /usr/include so that I could autocomplete some very basic functions. When I run the command ctags --c++-kinds=+p --fields=+iaS -f ~/.ta...

Running ctags for an external kernel module ( or pulling in tags from a separate related project )

I'm building a an 'external' module ( device driver ), i.e. it's not in the Linux kernel source tree, but in a separate unrelated source tree. I want to use ctags to browse variable / function declarations and definitions that are being pulled in from the kernel via header files. For example assuming I have: ~/src/kernel-source ~/src/...

Jumping back to a previously opened file in vim

I apologize if this has already been asked; I did a few searches both here and on Google and I can't find the answer to my question. While using Vim I'll sometimes want to look at a function definition or a struct definition, so I'll use C-] to jump to it. However, there are a few problems I run into. First off, I don't know how to jum...

Tips for Setting Up Complex CTAGS Search Paths

I want to be able to start up vim in an arbitrary subdirectory in my project and have it search up to the project root for the tags file, and then to search in an unrelated directory outside the project tree. For example let's say I have the following: ~/projects/foo/bar/baz.c ~/projects/foo/tags ~/some/arbitrary/path/tags I want to ...

How can I make vim's taglist plugin show useful information for javascript?

I've recently abandoned mouse-driven, platform-specific GUI editors and committed entirely to vim. The experience so far has been fantastic, but I'm stuck when it comes to Javascript. The ever-popular taglist utility (using Exuberant Ctags) has been great for everything but Javascript. With the language's overly-free form and structur...

ctags problem when generating tags for .h and .c file in two different directory

Now I have two directory, all of header files *.h are included in directory /inc, while all of c file *.c are stored in /src directory. The directory just like this, (/project is a up level directory): /project-- |----/inc |----/src I want to use ctrl+] to locate definition of one parameter or one function in a source file...

Single user mode in mac

I want to use the mac in single user mode. I want to use ctags and cscope in that mode. Could anyone help me with the setups required for this. Thank you. All i know is how to go to the single user mode so please tell me in a simple and easy to understand method. My mac is version 10.6(snow leopard) ...

gvim: Is there any way to get an array of strings?

I have in my .vimrc: let g:PROJECT1="/a/b/c" let g:PROJECT2="/d/e/f" I then do a bunch of operations on the above strings: let str=":!/usr/bin/ctags ".g:FLAGS_CPP." -f ".g:TAG_FILE." ".g:PROJECT1 exec(str) let str=":!/usr/bin/ctags ".g:FLAGS_CPP." -f ".g:TAG_FILE." ".g:PROJECT2 exec(str) I want to replace the above code with a for ...

VIM: How to move between matching tags?

I'm a big fan of ctags, but sometimes it is hard to use it. In case when I have a few declaration of the functions with the same name - "ctrl + ]" throws you to the first occurrence - which is not always what I need. How can I see the full list of matching tags so I can choose which one to open? ...

Understanding the `ctags -e` file format (ctags for emacs)

Hello, I am using "ExuberantCtags" also known as "ctags -e", also known as just "etags" and I am trying to understand the TAGS file format which is generated by the etags command, in particular I want to understand line #2 of the TAGS file. Wikipedia says that line #2 is described like this: {src_file},{size_of_tag_definition_data_in...

vi command line equivalent to CTRL-] ?

Hi all ! I'm trying to map my own shortcuts in vi. I want to be able to open a splitted window containing the declaration of the function I'm calling the shortcut on. something like this in my vimrc: nmap <unique> <silent> <Leader>tg :exe 'vsplit'\| equivalent of <C-]> but what's the equivalent of C-] in command mode ? ...

ctags generator for CORBA IDL?

I work in a multi-language environment and use Vim + ctags for navigating the code. However we also use CORBA and exuberant ctags does not parse IDL files. Does anyone know of a ctags compatible tags generator for IDL? ...

Is it possible to use different tags files for omnicomplete and general tag browsing in Vim?

Hi, I've been using ctags in Vim for years, but I've only just discovered omnicomplete. (It seems good.) However, I have a problem: to get omnicomplete working properly I have to use the --extra=+q option when generating the tags, which is fine, but this then changes the behaviour of general tag browsing in ways that I do not like. F...

Vim search for class

How do I define a vim function such that when called with Foo it searches via vimgrep for \s*class Foo or \s*struct Foo ? [This is poorman's cscope/ctag; I want to be able to type in a class name, and have it search for the class.] If this is easy, is there a way I can tell it to look under my cursor to use that 'word' as the ...

Is it possible to have Vim open a file in its default (non-vim) editor?

I have cTags set up to tag a bunch of custom stuff for simple internal scripting language I use at work. For various reasons, I'd like to have it set up so that if I <C-]> on certain tags vim opens them in their default editor rather than in another buffer. Is it possible to set this up? ...

Notepad++ Associate custom ext for use by ctags

Hi, I use .pkb and pkh extensions for PL/SQL files (rather than .sql). I have already associated .pkb and .pkh extension in the langs.xml (Styler Config) so that Notepad++ recognizes the syntax highlight to use when I open pkb and pkh files (the syntax highlighting would be the same as for sql ext). Now the problem is that I cannot use p...

Use VIM omnicomplete for javascript with ctags

I am using vim/gvim for 4 months already and now I found a way to use it's strengths. My tags file is generated very well and here is a simple row in it. my.namespace.classname /path/to/file.js /^my.namespace.classname = function(first_arg,$/;" f Here is an example what i need to omnicomplete: my.namespace.cla <- omnicomplete list...

How can I generate a TAGS file for Groovy classes for use in VIM/Emacs

Exuberant cTags doesn't support Groovy. ...