2014-07-10 21:05:51 -07:00
|
|
|
" Vim filetype plugin
|
|
|
|
" Language: Sass
|
|
|
|
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
2017-04-28 12:06:44 -07:00
|
|
|
" Last Change: 2016 Aug 29
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
" Only do this when not done yet for this buffer
|
|
|
|
if exists("b:did_ftplugin")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
let b:did_ftplugin = 1
|
|
|
|
|
2017-04-28 12:06:44 -07:00
|
|
|
let b:undo_ftplugin = "setl com< cms< def< inc< inex< ofu< sua<"
|
2014-07-10 21:05:51 -07:00
|
|
|
|
2017-04-28 12:06:44 -07:00
|
|
|
setlocal comments=://
|
2014-07-10 21:05:51 -07:00
|
|
|
setlocal commentstring=//\ %s
|
|
|
|
setlocal define=^\\s*\\%(@mixin\\\|=\\)
|
|
|
|
setlocal includeexpr=substitute(v:fname,'\\%(.*/\\\|^\\)\\zs','_','')
|
|
|
|
setlocal omnifunc=csscomplete#CompleteCSS
|
|
|
|
setlocal suffixesadd=.sass,.scss,.css
|
|
|
|
|
|
|
|
let &l:include = '^\s*@import\s\+\%(url(\)\=["'']\='
|
|
|
|
|
|
|
|
" vim:set sw=2:
|