Created
June 5, 2012 09:33
-
-
Save joshed-io/2873890 to your computer and use it in GitHub Desktop.
Vim regexp to convert Ruby 1.8 hash syntax into Ruby 1.9 syntax
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
| " This assumes one space between the symbol and the hashrocket, adjust to your needs! | |
| :%s/:\([a-z]*\) =>/\1:/gi<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment