| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Add CSS3 syntax support to Vim's built-in syntax/css.vim.
I strongly recommend to install this plugin on Vim 7.4 or higher with default runtime files.
Download from GitHub, extract vim-css3-syntax.tar.gz, and copy the contents to your ~/.vim directory.
$ cd ~/.vim/bundle $ git clone https://github.com/hail2u/vim-css3-syntax.git
Some properties do not highlight correctly by default. This is a limitation of Vim's highlight priority mechanism. To fix this problems, put following lines in your ~/.vim/after/css.vim:
setlocal iskeyword+=-
Or in your ~/.vimrc:
augroup VimCSS3Syntax autocmd! autocmd FileType css setlocal iskeyword+=- augroup END
This setting have side effects, so use it at your own risk.
In the process of adding!
vim-css3-syntax supports Sass's SCSS syntax only. If you want to use this plugin with LESS, install VIM-LESS. Sass's indent syntax and Stylus are not supported.
I drop Media Queries Level 3 support in v0.12.0. There is no easy way to support Media Queries properly with after syntax plugin like this one, sorry. If you want to highlight Media Queries correctly, you must update Vim to 7.4+ or install JulesWang/css.vim.
Kyo Namegashima kyo@hail2u.net
| Back | FazBrowse Home | New Git URL |