Skip to content

Instantly share code, notes, and snippets.

@mehulkar
Last active October 7, 2015 14:18
Show Gist options
  • Save mehulkar/3177540 to your computer and use it in GitHub Desktop.
Save mehulkar/3177540 to your computer and use it in GitHub Desktop.
Ruby Hash Syntax Upgrade

Convert Ruby 1.8 hash syntax into 1.9 syntax in vim E.g. :key => 'value' will become key: 'value'

:%s/:(\S+) =>/\1:/g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment