convert old-school ruby hashes to new-school with vim
in Vim:
:%s/:\([^ ]*\)\(\s*\)=>/\1:/g
thnx Dan Croak from thoughtbot
http://robots.thoughtbot.com/post/17450269990/convert-ruby-1-8-to-1-9-hash-syntax
Written by Павел Калашников
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#