change-hash-syntax


Ⅰ. 插件描述

Change hash syntax

Ⅱ. 基本信息

创建日期:  2012-07-16
使用用户:  45
Github星:  11
插件作者:  Vitaly Tatarintsev

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'ck3g/change-hash-syntax'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'ck3g/change-hash-syntax'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'ck3g/change-hash-syntax'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/ck3g/vim-change-hash-syntax

Ⅳ. 文档说明

# Change Hash Syntax

This plugin changes Ruby hash syntax to 1.9

# before
hash = { :one => 1, :two => 2 }

# after
hash = { one: 1, two: 2 }

How to use

To change hash syntax, just call :ChangeHashSyntax. By default it
operates on the entire file. Pass a range (or use V to select some lines)
to restrict the portion of the file that gets fixed.

Installation

git clone git://github.com/ck3g/vim-change-hash-syntax.git
cp vim-change-hash-syntax/plugin/change-hash-syntax.vim ~/.vim/plugin/

License

Distributed under the same terms as Vim itself.
See :help license.

添加新评论