Hi, all:
I have written a javacomplete.vim and java_parser.vim for java
omni-completion. Could you add it to vim?
You can visit http://www.vim.org/scripts/script.php?script_id=1785
Martin Stubenschrott did some testing work and gave me many feedbacks
and suggestions.

Features:
- Use the 'java' program to obtain most of the information.
- Use java_parser.vim to parse the JAVA source files.
- Support classes defined in source path.
- Builtin objects in JSP can be recognized.

Input context: ('|' indicates cursor position)
- package.|
- var.|
- method().|
- this.|
- array[i].|
- array.|
- method(|)
- new Class(|)
- var.ab|
- import java.util.|
- import java.ut|
- boolean.class.|
- compound_expr.var.|
- compound_expr.method().|
- compound_expr.method(|)
- compound_expr.var.ab|
- System.out.println( str.| )
- System.out.println(str.charAt(| )
- for (int i = 0; i < str.|; i++)

Preparation:
- Just jre1.2 and above. The "java" program should be searched in the
PATH enviroment variable.

Kirim email ke