jiajiawang / vim-ruby-helper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ruby-helper.vim

A vim plugin that provides helper functions of ruby editing.

Installation

Use Vundle

Add Plugin 'jiajiawang/vim-ruby-helper' to your vimrc file.

Then run :PluginInstall

Usage

String Symbol Swith

<leader>rss - Converts string/symbol under cursor to symbol/string

'foobar' becomes :foobar

:foobar becomes 'foobar'

Hash Syntax Swith

<leader>rhs - Converts between old and new hash syntax

'foo' => 'bar' becomes foo: 'bar'

:foo => 'bar' becomes foo: 'bar'

foo: 'bar' becomes :foo => 'bar'

About


Languages

Language:Vim Script 100.0%