Skip to content

Instantly share code, notes, and snippets.

@harley
Created July 12, 2012 22:30
Show Gist options
  • Save harley/3101503 to your computer and use it in GitHub Desktop.
Save harley/3101503 to your computer and use it in GitHub Desktop.
vim shortcut to convert ruby ruby 1.8 hashrocket to 1.9 colon syntax
nmap _hr :%s/\v:(\w+) \=\>/\1:/g<cr>
nmap _h :s/\v:(\w+) \=\>/\1:/g<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment