A vim plugin that provides helper functions of ruby editing.
Use Vundle
Add Plugin 'jiajiawang/vim-ruby-helper'
to your vimrc file.
Then run :PluginInstall
<leader>rss
- Converts string/symbol under cursor to symbol/string
'foobar'
becomes :foobar
:foobar
becomes 'foobar'
<leader>rhs
- Converts between old and new hash syntax
'foo' => 'bar'
becomes foo: 'bar'
:foo => 'bar'
becomes foo: 'bar'
foo: 'bar'
becomes :foo => 'bar'