Skip to content

Instantly share code, notes, and snippets.

@rmw
Last active August 5, 2022 17:37
Show Gist options
  • Save rmw/4df2aef78a2ab41ec09c to your computer and use it in GitHub Desktop.
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
:%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