blob: 64232a0894e62b2e7e548ec9621272a6593f813a [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>
4" Last Change: 2010 Jul 26
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 Moolenaar0ed0eea2010-07-26 22:21:27 +020012let b:undo_ftplugin = "setl cms< def< inc< inex< ofu< sua<"
Bram Moolenaarc236c162008-07-13 17:41:49 +000013
14setlocal commentstring=//\ %s
Bram Moolenaar0ed0eea2010-07-26 22:21:27 +020015setlocal define=^\\s*\\%(@mixin\\\|=\\)
16setlocal includeexpr=substitute(v:fname,'\\%(.*/\\\|^\\)\\zs','_','')
Bram Moolenaarc236c162008-07-13 17:41:49 +000017setlocal omnifunc=csscomplete#CompleteCSS
Bram Moolenaar0ed0eea2010-07-26 22:21:27 +020018setlocal suffixesadd=.sass,.scss,.css
Bram Moolenaarc236c162008-07-13 17:41:49 +000019
Bram Moolenaar0ed0eea2010-07-26 22:21:27 +020020let &l:include = '^\s*@import\s\+\%(url(\)\=["'']\='
Bram Moolenaarc236c162008-07-13 17:41:49 +000021
22" vim:set sw=2: