Last active
August 5, 2022 17:37
-
-
Save rmw/4df2aef78a2ab41ec09c to your computer and use it in GitHub Desktop.
Vim Command (Regex) to convert old Ruby hash syntax to 2.0 syntax
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:%s/['":]\([a-zA-Z_-]*\)['"]*\s*=>/\1: /gc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment