vim-rbfactor


Ⅰ. 插件描述

Functions to refactor Ruby programs with Vim

Ⅱ. 基本信息

创建日期:  2013-11-22
使用用户:  1
Github星:  4
插件作者:  Arjan van der Gaag

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# Rbfactor – Refactoring Ruby with Vim

Introduction

Rbfactor is a set of functions to make refactoring Ruby code in Vim a little

  1. It provides transformation functions and some keymaps to use them.

Available refactorings

  • Extract method
  • Extract variable
  • Extract constant
  • Extract RSpec let
  • Add method argument
  • Tranform inline modifier into block modifier

For more information, see :help rbfactor.

Installation

If you don't have a preferred installation method, I recommend
installing pathogen.vim, and
then simply copy and paste:

cd ~/.vim/bundle
git clone git://github.com/avdgaag/vim-rbfactor.git

Once help tags have been generated, you can view the manual with
:help rbfactor.

Other

Note on Patches/Pull Requests

  1. Fork the project.
  2. Make your feature addition or bug fix.
  3. Send me a pull request. Bonus points for topic branches.

Issues

Please report any issues, defects or suggestions in the Github issue tracker.

What has changed?

See the HISTORY file for a detailed changelog.

Credits

Created by: Arjan van der Gaag
URL: http://arjanvandergaag.nl
Project homepage: https://github.com/avdgaag/vim-rbfactor
Date: November 2013
License: Same as Vim. See :help license.

添加新评论