Last active
October 28, 2024 23:26
-
-
Save akiva/6500042 to your computer and use it in GitHub Desktop.
Vim regex to convert hash rocket syntax to modern colon style syntax for hashes with symbol-based keys
This file contains hidden or 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/:\(\w*\)\(\s\+\)\?=>/\1:/gc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment