Skip to content

Instantly share code, notes, and snippets.

@pranav7
Last active December 6, 2016 09:52
Show Gist options
  • Save pranav7/54207787a47ef4ae77e31a543f4fca60 to your computer and use it in GitHub Desktop.
Save pranav7/54207787a47ef4ae77e31a543f4fca60 to your computer and use it in GitHub Desktop.
Conver ruby hash to new syntax

Convert Ruby 1.8 to 1.9 Hash Syntax - for vim

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