Skip to content

Commit

Permalink
Add a separate filetype for SCSS
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed Jul 25, 2010
1 parent 38b8d33 commit 980b746
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions ftdetect/haml.vim
@@ -1,2 +1,3 @@
autocmd BufNewFile,BufRead *.haml setf haml
autocmd BufNewFile,BufRead *.sass setf sass
autocmd BufNewFile,BufRead *.scss setf scss
11 changes: 11 additions & 0 deletions ftplugin/scss.vim
@@ -0,0 +1,11 @@
" Vim filetype plugin
" Language: SCSS
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>

if exists("b:did_ftplugin")
finish
endif

runtime! ftplugin/sass.vim

" vim:set sw=2:
11 changes: 11 additions & 0 deletions indent/scss.vim
@@ -0,0 +1,11 @@
" Vim indent file
" Language: SCSS
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>

if exists("b:did_indent")
finish
endif

runtime! indent/css.vim

" vim:set sw=2:
14 changes: 14 additions & 0 deletions syntax/scss.vim
@@ -0,0 +1,14 @@
" Vim syntax file
" Language: SCSS
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
" Filenames: *.scss

if exists("b:current_syntax")
finish
endif

runtime! syntax/sass.vim

let b:current_syntax = "scss"

" vim:set sw=2:

0 comments on commit 980b746

Please sign in to comment.