• Stars
    star
    387
  • Rank 110,971 (Top 3 %)
  • Language
    CSS
  • Created over 14 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Vim syntax file for scss (Sassy CSS)

Vim 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.

More Repositories

1

openid-component

An OpenID component for CakePHP
PHP
103
star
2

oauth-consumer

OAuth consumer for CakePHP realized as vendor class
PHP
74
star
3

oauth-consumer-component

OAuth consumer component for CakePHP
PHP
49
star
4

autocomplete-component

autocomplete-component for CakePHP
PHP
15
star
5

controller-list-component

A simple CakePHP component which returns a list of controllers
PHP
15
star
6

openid-component-example

Example app to show how the openid-component is used
PHP
13
star
7

selenium-helper

Selenium helper for CakePHP
13
star
8

node-url-expander

An URL expander for node.js
JavaScript
8
star
9

jquery-jknavigable

A jQuery plugin that allows you to navigate using the "j" and "k" keys
JavaScript
7
star
10

lessnoise

A web extension to filter Twitter's timeline in Firefox
JavaScript
5
star
11

jquery-disableIfEmpty

A simple jQuery plugin to disable a button if an observed element is empty
JavaScript
5
star
12

bash-completions

Some bash completion scripts
5
star
13

openid-switcher

A simple Sinatra application which allows you to switch the target url of your delegated OpenID
Ruby
3
star
14

site-search

A site search realized with Sinatra and Yahoo! BOSS
Ruby
3
star
15

less-noise

A Twitter client using Node.js
JavaScript
2
star
16

rbrowser

Following "Web Browser Engineering", using Rust to implement it
Rust
2
star
17

dotfiles

My setup, cherry pick what you like
Vim Script
1
star
18

node-fof

A simple CLI tool providing (almost) the same functionality as friendorfollow.com
CoffeeScript
1
star
19

smv

A simple cli tool to selectively move files from one directory to another
Haskell
1
star
20

rlox

Rust implementation of the Lox compiler from the book "Crafting Interpreters"
Rust
1
star