change-hash-syntax : Change Ruby hash syntax to 1.9
script karma |
Rating 10/4,
Downloaded by 821 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Vitaly Tatarintsev |
|
script type |
syntax |
|
description |
This plugin chnages Ruby hash syntax to 1.9
# before
hash = { :one => 1, :two => 2 }
# after
hash = { one: 1, two: 2 }
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. |
|
install details |
|
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 3.133.132.103
|