Ⅰ. 插件描述
A source of neocomplcache which completes keyword argments in RubyⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'rhysd/neco-ruby-keyword-args'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'rhysd/neco-ruby-keyword-args'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'rhysd/neco-ruby-keyword-args'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/rhysd/neco-ruby-keyword-args
Ⅳ. 文档说明
## Completes Keyword Argments in Ruby
This is a source of neocomplcache which completes keyword argments in Ruby.
Keyword arguments are available in Ruby 2.0 or later.
Keyword arguments allow us to forget the order of the arguments.
However, we must remember the name of arguments (although this is
far easy in contrast to the order of them).
This plugin completes the name of arguments using neocomplcache.[K] in menu items are the mark of keysord-argument-complete.
In a following example, argument name tsura of the method test is completing.

This source now can completes keyword arguments of the methods from
- the buffer you are editting
- files required in your buffer recursively
neocomplcache is required.