Skip to content

Add CSS3 syntax support to vim's built-in `syntax/css.vim`.

Notifications You must be signed in to change notification settings

brauliobo/vim-css3-syntax

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

108 Commits
 
 
 
 
 
 

Repository files navigation

vim-css3-syntax

Add CSS3 syntax support to vim's built-in syntax/css.vim.

INSTALLATION

Manual Installation

Download from GitHub, extract vim-css3-syntax.tar.gz, and copy the contents to your ~/.vim directory.

Installing with Git and Pathogen

$ cd ~/.vim/bundle
$ git clone https://github.com/hail2u/vim-css3-syntax.git

About Vendor Extension

I do not plan to support CSS3 properties (or functions) with vendor prefixes, such as -webkit- or -moz-, etc. These are hard to maintain because they are:

  • Added frequently
  • Changed unexpectedly
  • Removed silently

These must be supported by separate syntax plugins. Or, if you want to highlight prefixed properties or functions, :highlight and :match would help.

:highlight VendorPrefix guifg=#00ffff gui=bold
:match VendorPrefix /-\(moz\|webkit\|o\|ms\)-[a-zA-Z-]\+/

These commands highlight vendor prefixed properties and functions instantly with cyan and bold (on gVim).

HISTORY

v0.7 (in progress)

  • Follow spec updates
  • Some minor bug fixes

v0.6

  • Add Test
  • Remove deprecated CSS Grid Positioning Module
  • Follow spec updates
  • Some minor bug fixes

v0.5

  • Add CSS Regions Module Level 3 features
  • Add CSS Exclusions and Shapes Module Level 3 features
  • Add CSS Grid Layout features
  • Add CSS Box Alignment features
  • Add gr unit
  • Follow spec updates
  • Some minor bug fixes

v0.4

  • Add CSS Fragmentation Module Level 3 features
  • Fix a problem on pseudo-class and pseudo-element names inside @media block
  • Fix a problem on media type and expression
  • Add CSS Values and Units Module Level 3 features
  • Follow spec updates
  • Some minor bug fixes

v0.3

  • Add CSS3 Presentation Levels Module features
  • Add CSS3 Lists Module features
  • Add CSS3 Generated and Replaced Content Module features
  • Add CSS Template Layout Module features
  • Add CSS Image Values and Replaced Content Module Level 3 features
  • Fix a problem on class names inside @media block
  • Some minor bug fixes

v0.2

  • Almost all CSS3 features added

v0.1

  • Initial release

AUTHOR

Kyo Namegashima kyo@hail2u.net

LICENSE

MIT: http://hail2u.mit-license.org/2011

About

Add CSS3 syntax support to vim's built-in `syntax/css.vim`.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vim Script 100.0%