sponsor Vim development Vim logo go to HTTPS page Vim Book Ad

change-hash-syntax : Change Ruby hash syntax to 1.9

 script karma  Rating 8/2, Downloaded by 268    Comments, bugs, improvements  Vim wiki

created by
Vitaly Tatarintsev
script type
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

Rating scripts is only available on the HTTPS page

script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
change-hash-syntax.vim 0.01 2012-07-16 7.0 Vitaly Tatarintsev Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
SourceForge.net Logo