Skip to content

Instantly share code, notes, and snippets.

@joshed-io
Created June 5, 2012 09:33
Show Gist options
  • Select an option

  • Save joshed-io/2873890 to your computer and use it in GitHub Desktop.

Select an option

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 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