Skip to content

Instantly share code, notes, and snippets.

@tfentonz
Created August 11, 2015 04:39
Show Gist options
  • Save tfentonz/02321ee8d1b48a69ff0f to your computer and use it in GitHub Desktop.
Save tfentonz/02321ee8d1b48a69ff0f to your computer and use it in GitHub Desktop.
Regular expression one-liners

Replace Ruby 1.8 hash syntax in Vim.

%s/\([^:]\):\(\w\w*\)\s*=>\s*/\1\2: /g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment