Skip to content

Instantly share code, notes, and snippets.

@ysawa
Created October 12, 2011 14:31
Show Gist options
  • Save ysawa/1281363 to your computer and use it in GitHub Desktop.
Save ysawa/1281363 to your computer and use it in GitHub Desktop.
converting ruby old hash syntax to new one
function! RubyNewHashSyntax()
:%s/:\(\w\+\) =>/\1:/ge
endfunction
command! RubyNewHashSyntax :call RubyNewHashSyntax()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment