mirror of
https://github.com/tpope/vim-haml.git
synced 2026-01-30 10:35:23 +08:00
Add a separate filetype for SCSS
This commit is contained in:
@@ -1,2 +1,3 @@
|
|||||||
autocmd BufNewFile,BufRead *.haml setf haml
|
autocmd BufNewFile,BufRead *.haml setf haml
|
||||||
autocmd BufNewFile,BufRead *.sass setf sass
|
autocmd BufNewFile,BufRead *.sass setf sass
|
||||||
|
autocmd BufNewFile,BufRead *.scss setf scss
|
||||||
|
|||||||
11
ftplugin/scss.vim
Normal file
11
ftplugin/scss.vim
Normal file
@@ -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
indent/scss.vim
Normal file
11
indent/scss.vim
Normal file
@@ -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
syntax/scss.vim
Normal file
14
syntax/scss.vim
Normal file
@@ -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:
|
||||||
Reference in New Issue
Block a user