Skip to content

Instantly share code, notes, and snippets.

View aarongray's full-sized avatar

Aaron Gray aarongray

View GitHub Profile
@aarongray
aarongray / sass_colon_converter_vim_script
Last active December 27, 2015 19:19
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