Skip to content

Instantly share code, notes, and snippets.

@aarongray
Last active December 27, 2015 19:19
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 aarongray/7376335 to your computer and use it in GitHub Desktop.
Save aarongray/7376335 to your computer and use it in GitHub Desktop.
Convert Sass stylesheets from the old colon syntax (colons in front of selector) to the new syntax (colons behind the selector), because it looks more like English. http://sass-lang.com/documentation/file.INDENTED_SYNTAX.html
:%s/\v(\s+)(\&:)@!:(\w*-*\w*)/\1\3:/g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment