Skip to content

Instantly share code, notes, and snippets.

@spalenza
Created November 24, 2016 01:06
Show Gist options
  • Save spalenza/bc28bd50495e0f10d1ced9e95aabeecc to your computer and use it in GitHub Desktop.
Save spalenza/bc28bd50495e0f10d1ced9e95aabeecc to your computer and use it in GitHub Desktop.
Vim command to ruby new hash notation
command! -range=% RubyNewHashNotation silent execute <line1>.','.<line2>.'s/:\(\w\+\)\s*=>\s*/\1: /g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment