Created
May 17, 2016 08:20
-
-
Save hail2u/9771151b6f0592fd1c09cd944ae02c85 to your computer and use it in GitHub Desktop.
~/vimfiles/compiler/sassc.vim
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
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