2017-02-02 17:23:52 -05:00
|
|
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scss') == -1
|
2015-07-18 17:05:45 -04:00
|
|
|
|
2017-02-02 17:23:52 -05:00
|
|
|
if exists('b:did_indent') && b:did_indent
|
|
|
|
" be kind. allow users to override this. Does it work?
|
Add support for basic languages
coffee, cucumbeer, eruby, haml, haskell, javascript,
json, less, nginx, ocaml, ruby, sass, scss, slim,
stylus, textile, tmux
2013-09-12 10:17:03 -04:00
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
2017-02-02 17:23:52 -05:00
|
|
|
setlocal indentexpr=scss_indent#GetIndent(v:lnum)
|
Add support for basic languages
coffee, cucumbeer, eruby, haml, haskell, javascript,
json, less, nginx, ocaml, ruby, sass, scss, slim,
stylus, textile, tmux
2013-09-12 10:17:03 -04:00
|
|
|
|
2017-02-02 17:23:52 -05:00
|
|
|
" Automatically insert the current comment leader after hitting <Enter>
|
|
|
|
" in Insert mode respectively after hitting 'o' or 'O' in Normal mode
|
|
|
|
setlocal formatoptions+=ro
|
|
|
|
|
|
|
|
" SCSS comments are either /* */ or //
|
|
|
|
setlocal comments=s1:/*,mb:*,ex:*/,://
|
2015-07-18 17:05:45 -04:00
|
|
|
|
|
|
|
endif
|