OO code completion


Ⅰ. 插件描述

Gives list of methods for the identifier under the cursor for OO languages.

Ⅱ. 基本信息

创建日期:  2002-11-26
使用用户:  1
Github星:  1
插件作者:  emmanuel touzery

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

NOTE:as of  june 17, 2003, this script is no more developped due to lack of time/lack of certain features i miss in ctags. i'll take patches to improve it however, and i have a much more ambitious version (with limited lex/yacc parsing in ruby via racc) on my hard-drive, any contribution is appreciated.
i don't consider it dead, but in hibernation (especially for the ctags features).

REQUIRES RUBY.
This plugin will provide functions to get "code completion" in vim.
it will list all methods for the identifier under the cursor if you call :PossibleFunctions.
when you start typing a method, it will tell you which methods of the relevant class start by what you typed if you call :PossibleCompletions.
it works by using gd and ctags to get the class of the relevant object, and ctags to get the list of functions for this object.
NOTE: this includes inheritance! functions of the class and the parent classes are listed.
normally also only public member functions are listed.
This plugin requires tags to be generated with certain parameters (it
needs information about inheritance and access of members).
You can use the GenerateTags command to generate tags for the current directory.

For now this plugin only supports Java and C++. It should only support OO languages, though I guess it could be used for C structs maybe.

添加新评论