Khubaib wrote:
hello tony,
thanks for the reply. I tried using it, but I think I may be doing something 
wrong. do you know how to produce tags when java source files are distributed 
across directories?
-khubaib

see "man ctags"

To recurse into directories, use the -R command-line parameter.

e.g. to create tags for files of all known filetypes in the current directory and below, and sort them ignoring case:

ctags -R --sort=foldcase

To create tags for java files only, in the current directory and below, and sort them not ignoring case

ctags -R --languages=java

To create tags for only classes, interfaces and methods, java files only, in the current directory and below, sort not ignoring case

ctags -R --languages=java --java-kinds=cim

etc.


----- Original Message ----
From: A.J.Mechelynck <[EMAIL PROTECTED]>
To: Khubaib <[EMAIL PROTECTED]>
Cc: [email protected]
Sent: Sunday, September 24, 2006 4:30:36 PM
Subject: Re: vim and java source code browsing

Khubaib wrote:
Hello,
I wanted to know how can I efficiently browse java source code in VIM? That is 
to say that I should be able to jump to class and methods definition etc. I 
tried using ctags, but could not use it to produce tags for java source. The 
code is distributed across multiple source directories in a hierarchy. I have 
heard about jtags, but I was not able to install that on my home directory. any 
hints?
-Khubaib


Exuberant ctags knows about Java (I have version 5.5.4 installed).
Java tags kinds:
c classes
f fields
i interfaces
l local variables [off]
m methods
p packages


Best regards,
Tony.

Reply via email to