Skip to content

chrisyip/Better-CSS-Syntax-for-Vim

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

Better CSS Syntax for Vim

Highlights for full CSS2, most of HTML5 & CSS3 properties (include prefix like -moz-).

Preview:

Molokai sheme:

Molokai

Slate scheme:

Slate

Known issue:

  • May not collaborate with some plugins, e.g. CSS Color, Sass
  • Some properties can't highlighted well with prefix
  • CSS3 animation properties highlighting

Because of this plugin is built for standard CSS and not compatible with original css.vim (see this), if you run into any error that related to CSS, you may need this:

Sass:

How to get rid of the error:

  • edit sass.vim, go to line 16, delete cssValue.*,
  • edit your .vimrc, add au BufRead,BufNewFile *.sass set filetype=css

Or, try css3 syntax or vim-css3-syntax.

About

Better CSS Syntax for Vim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published