diff --git a/README.md b/README.md index ecfa669..08237d2 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,10 @@ It is shipped with `js-beautify`, which can be installed by running `npm install Note that `nodejs` is needed for this to work. Here is the link to the repository: https://github.com/einars/js-beautify. +* `sass-convert` for __SCSS__. +It is shipped with `sass`, a CSS preprocessor written in Ruby, which can be installed by running `gem install sass`. +Here is the link to the SASS homepage: http://sass-lang.com/. + * `tidy` for __XHTML__ and __XML__. It's probably in your distro's repository, so you can download it as a regular package. For Ubuntu type `sudo apt-get install tidy` in a terminal. diff --git a/plugin/defaults.vim b/plugin/defaults.vim index 96f4621..d089b40 100644 --- a/plugin/defaults.vim +++ b/plugin/defaults.vim @@ -38,6 +38,11 @@ if !exists("g:formatprg_args_expr_css") && !exists("g:formatprg_args_css") let g:formatprg_args_expr_css = '"-f - -s ".&shiftwidth' endif +if !exists("g:formatprg_scss") | let g:formatprg_scss = "sass-convert" | endif +if !exists("g:formatprg_args_expr_scss") && !exists("g:formatprg_args_scss") + let g:formatprg_args_expr_scss = '"-F scss -T scss --indent " . (&expandtab ? &shiftwidth : "t")' +endif + if !exists("g:formatprg_html") | let g:formatprg_html = "html-beautify" | endif if !exists("g:formatprg_args_expr_html") && !exists("g:formatprg_args_html") let g:formatprg_args_expr_html = '"-f - -s ".&shiftwidth'