Skip to content

Instantly share code, notes, and snippets.

@craffel
Created June 21, 2017 19:20
Show Gist options
  • Save craffel/76924fd211720412c19327cfb8f0f5e2 to your computer and use it in GitHub Desktop.
Save craffel/76924fd211720412c19327cfb8f0f5e2 to your computer and use it in GitHub Desktop.
Vim regex for replacing all commas not followed by space with commas followed by space
:%s/,\([^ ]\)/, \1/g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment