Created
September 10, 2010 05:03
-
-
Save hokaccha/573134 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! Sass_convert() | |
let scss = expand('%:p') | |
let css = substitute(scss, 'scss$', 'css', '') | |
let cmd = printf('sass %s %s', scss, css) | |
let res = system(cmd) | |
if res != '' | |
echo res | |
endif | |
endfunction | |
au! BufWritePost *.scss call Sass_convert() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment