Skip to content

Commit

Permalink
Add 'includeexpr' and 'suffixesadd' to Sass
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed Jul 25, 2010
1 parent 6228a6a commit 358eb13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ftplugin/sass.vim
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ if exists("b:did_ftplugin")
endif
let b:did_ftplugin = 1

let b:undo_ftplugin = "setl cms< inc< ofu<"
let b:undo_ftplugin = "setl cms< inc< inex< ofu< sua<"

setlocal commentstring=//\ %s
setlocal includeexpr=substitute(v:fname,'\\%(.*/\\\|^\\)\\zs','_','')
setlocal omnifunc=csscomplete#CompleteCSS
setlocal suffixesadd=.css,.sass,.scss

let &l:include = '^\s*@import\s\+\%(url(\)\=["'']\='

Expand Down

0 comments on commit 358eb13

Please sign in to comment.