Ⅰ. 插件描述
ruby omni-completionⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/rubycomplete-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/rubycomplete-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/rubycomplete-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/rubycomplete.vim
Ⅳ. 文档说明
rubycomplete is an omni-completion script for ruby.
It supports the following:
* dynamic completion of in-buffer entities (classes, methods, objects, modules).
* rails
- inclusion of column-names/fields
- helpers included in completions
* automatic inclusion of required modules
* automatic handling of syntax errors
Rubycomplete requires ruby support to work. It uses ruby to process the buffer and introspection to create a list of completions.
It is distributed with vim, and as part of the vim-ruby project (http://vim-ruby.rubyforge.org/).
CVS versions are availible from vim-ruby, major releases will be published here and on my site.
For more info go to: http://blog.hasno.info/blog/segfault/dev/2006/04/10/vim-7-ruby-omni-completion.html