Skip to content

Instantly share code, notes, and snippets.

@anthonybrown
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anthonybrown/9566515 to your computer and use it in GitHub Desktop.
Save anthonybrown/9566515 to your computer and use it in GitHub Desktop.
A regEx to change " to ' and ' to "
Single quotes to double quotes
:%s/'\(\([^']*\)\)'/"\1"/g
Double quotes to single quotes
:%s/"\(\([^"]*\)\)"/'\1'/g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment