diff options
Diffstat (limited to 'ftplugin/scss.vim')
-rw-r--r-- | ftplugin/scss.vim | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ftplugin/scss.vim b/ftplugin/scss.vim index e95b70f5..55519c31 100644 --- a/ftplugin/scss.vim +++ b/ftplugin/scss.vim @@ -1,17 +1,17 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1 +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scss') == -1 -" Vim filetype plugin -" Language: SCSS -" Maintainer: Tim Pope <vimNOSPAM@tpope.org> -" Last Change: 2010 Jul 26 - -if exists("b:did_ftplugin") +if exists('b:did_indent') && b:did_indent + " be kind. allow users to override this. Does it work? finish endif -runtime! ftplugin/sass.vim -setlocal comments=s1:/*,mb:*,ex:*/,:// +setlocal indentexpr=scss_indent#GetIndent(v:lnum) -" vim:set sw=2: +" 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:*/,:// endif |