cakebaker/scss-syntax.vim
소개
Vim syntax file for scss (Sassy CSS)
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalVim Syntax File for SCSS (Sassy CSS)
Installation
I recommend to use a plugin manager like Vundle for the installation.
Vundle
Open your ~/.vimrc file and add the following line(s):
Plugin 'JulesWang/css.vim' " only necessary if your Vim version < 7.4
Plugin 'cakebaker/scss-syntax.vim'
Afterwards, run :PluginInstall in Vim.
Pathogen
git clone https://github.com/cakebaker/scss-syntax.vim ~/.vim/bundle/scss-syntax
Manual
- Download scss.vim
- Download css.vim (only necessary if your Vim version < 7.4)
- Copy the content of the folders to the respective folders in
~/.vim/
Configuration
Usually no configuration is necessary.
CSS3
For highlighting CSS elements, this plugin relies on css.vim that comes bundled with Vim. Unfortunately, it's support for CSS3 is only rudimentary. To avoid highlighting issues I recommend to install the vim-css3-syntax plugin.
Filetype
In some cases you might want to change the filetype from scss to scss.css, for example, if you want to use SnipMate's CSS snippets within your SCSS files. In this case, add the following line to your ~/.vimrc file:
au BufRead,BufNewFile *.scss set filetype=scss.css
Please be aware that this setting can cause problems with other plugins as mentioned in #41.
Function names starting with a keyword
Function names starting with a keyword (e.g. baseline-unit()) are not highlighted correctly by default. It can be fixed by adding the following line to your ~/.vimrc file:
autocmd FileType scss set iskeyword+=-
Please be aware that this setting also affects the behavior of the motion keys.
관련 프로젝트 살펴보기
불러오는 중…