neco-ruby-keyword-args


Ⅰ. 插件描述

A source of neocomplcache which completes keyword argments in Ruby

Ⅱ. 基本信息

创建日期:  2012-11-14
使用用户:  19
Github星:  7
插件作者:  Linda_pp

Ⅲ. 安装方法

使用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.

complete a first keyword argument, 'tsura'

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.

添加新评论