Change hash syntax
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
doc initial commit Jul 16, 2012
plugin fix replacing Namespace::Exception => ex Jul 16, 2012
.gitignore initial commit Jul 16, 2012
README.markdown fix typo Jul 16, 2012


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.


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


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