blob: d6909e7ad5d4cf8cec4075c3bf4a7878b34fb757 [file] [log] [blame]
Bram Moolenaarc236c162008-07-13 17:41:49 +00001" Vim filetype plugin
Bram Moolenaar0ed0eea2010-07-26 22:21:27 +02002" Language: Sass
3" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
Bram Moolenaar89bcfda2016-08-30 23:26:57 +02004" Last Change: 2016 Aug 29
Bram Moolenaarc236c162008-07-13 17:41:49 +00005
6" Only do this when not done yet for this buffer
7if exists("b:did_ftplugin")
8 finish
9endif
10let b:did_ftplugin = 1
11
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020012let b:undo_ftplugin = "setl com< cms< def< inc< inex< ofu< sua<"
Bram Moolenaarc236c162008-07-13 17:41:49 +000013
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020014setlocal comments=://
Bram Moolenaarc236c162008-07-13 17:41:49 +000015setlocal commentstring=//\ %s
Bram Moolenaar0ed0eea2010-07-26 22:21:27 +020016setlocal define=^\\s*\\%(@mixin\\\|=\\)
17setlocal includeexpr=substitute(v:fname,'\\%(.*/\\\|^\\)\\zs','_','')
Bram Moolenaarc236c162008-07-13 17:41:49 +000018setlocal omnifunc=csscomplete#CompleteCSS
Bram Moolenaar0ed0eea2010-07-26 22:21:27 +020019setlocal suffixesadd=.sass,.scss,.css
Bram Moolenaarc236c162008-07-13 17:41:49 +000020
Bram Moolenaar0ed0eea2010-07-26 22:21:27 +020021let &l:include = '^\s*@import\s\+\%(url(\)\=["'']\='
Bram Moolenaarc236c162008-07-13 17:41:49 +000022
23" vim:set sw=2: