oo


Ⅰ. 插件描述

Java code commpletion

Ⅱ. 基本信息

创建日期:  2005-02-12
使用用户:  1
Github星:  2
插件作者:  JiuTian Zhang

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/oo'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/oo'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/oo'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/oo

Ⅳ. 文档说明

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,

添加新评论