oo : Java code commpletion
script karma |
Rating 4/1,
Downloaded by 1799 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
JiuTian Zhang |
|
script type |
utility |
|
description |
This plugin is used for Java code completion. It's depends on ctags ,
vim which +ruby future is enabled.
For generate tags :
ctags --fileds=+ai .....
For generate tags Index file:
:ruby generateIndex("/usr/java/jdk/src/tags",2)
The second parameter which value is 2 is recommand.
Once you vim version is 7.00aa
:set cfu=OocompleteFun
You can use <CTRL>-x<CTRL>-u for this samle:
String str="";
str.to
^<CTRL>-X<CTRL>-U
For c++ user:
SomeClass * abc;
abc->So
^<CTRL>-X<CTRL>-U
Both java and c++
Abc::So
^<CTRL>-X<CTRL>-U
Then toByteArray, toUpperCase... would be selectable.
vim version is 6.xx
:Oofun String to
First parameter is name of the class , the second is the function name ( partly)
Then toByteArray, toUpperCase... would be show in command window.
One command is added, It's used to check variable type
:Ootype varname
TODO list :
ctags's support for jdk1.5 , something incorrectly. like ,java.util.Vector
Advanced varible define selector. Something lik normal command gd
The last, my poor document and my poor English,
|
|
install details |
tar -xzf oocomplete.tgz -C$VIMFILES
VIMFILES is your vim script dir , for Mandrake10.1 is
/usr/share/vim/vimfiles
For windows: may be
d:\vim\vimfiles |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.97.14.90
|