Skip to content

Instantly share code, notes, and snippets.

@hail2u
Created May 17, 2016 08:20
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 hail2u/9771151b6f0592fd1c09cd944ae02c85 to your computer and use it in GitHub Desktop.
Save hail2u/9771151b6f0592fd1c09cd944ae02c85 to your computer and use it in GitHub Desktop.
~/vimfiles/compiler/sassc.vim
if exists("current_compiler")
finish
endif
let current_compiler = "sass_scss"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
let s:cpo_save = &cpo
set cpo&vim
CompilerSet makeprg=sassc\ %\ %:s?\.scss$?.css?
CompilerSet errorformat=
\%EError:\ %m,
\%Z\ \ \ \ \ \ \ \ on\ line\ %l\ of\ %f,
\%-G%.%#
let &cpo = s:cpo_save
unlet s:cpo_save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment