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