Joined August 2011
·
Posted to
Search/Replace old Ruby hash syntax with the new 1.9+ in vim
over 1 year
ago
I put in in my vimrc:
map <leader>: :%s/:(\w+)(\s=>\s)/\1: /gc<CR>
Posted to
Search/Replace old Ruby hash syntax with the new 1.9+ in vim
over 1 year
ago
Thanks, it works.
Achievements
116 Karma
2,157 Total ProTip Views
24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2014
Altruist
Increase developer well-being by sharing at least 20 open source projects
Bear
Have at least one original repo where Objective-C is the dominant language
Python
Would you expect anything less? Have at least one original repo where Python is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Mongoose
Have at least one original repo where Ruby is the dominant language
Lab
Have at least one original repo where C# is the dominant language
I prefer 'match_array' instead.
http://rubydoc.info/github/rspec/rspec-expectations/RSpec/Matchers:match_array