0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00
vim/runtime/ftplugin/sass.vim

24 lines
607 B
VimL
Raw Normal View History

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