sass.vim 607 B

123456789101112131415161718192021222324
  1. " Vim filetype plugin
  2. " Language: Sass
  3. " Maintainer: Tim Pope <vimNOSPAM@tpope.org>
  4. " Last Change: 2016 Aug 29
  5. " Only do this when not done yet for this buffer
  6. if exists("b:did_ftplugin")
  7. finish
  8. endif
  9. let b:did_ftplugin = 1
  10. let b:undo_ftplugin = "setl com< cms< def< inc< inex< ofu< sua<"
  11. setlocal comments=://
  12. setlocal commentstring=//\ %s
  13. setlocal define=^\\s*\\%(@mixin\\\|=\\)
  14. setlocal includeexpr=substitute(v:fname,'\\%(.*/\\\|^\\)\\zs','_','')
  15. setlocal omnifunc=csscomplete#CompleteCSS
  16. setlocal suffixesadd=.sass,.scss,.css
  17. let &l:include = '^\s*@import\s\+\%(url(\)\=["'']\='
  18. " vim:set sw=2: