Ⅰ. 插件描述
Highlight colors in css filesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'skammer/vim-css-color'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'skammer/vim-css-color'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'skammer/vim-css-color'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/skammer/vim-css-color
Ⅳ. 文档说明
vim-css-color plugin
css_color.vim plugin by Niklas Hofer is great, but lacks two important features:
- Highlighting multiple colors on the same line (not sure if anyone uses it though)
- rgb and rgba color notation for all those fancy CSS3 niceties
So here is my patch.

Configuration
g:cssColorVimDoNotMessMyUpdatetime is used when updatetime value set by plugin (100ms) is interfering with your configuration.
let g:cssColorVimDoNotMessMyUpdatetime = 1
Post Scriptum
Major kudos to rainbow-mode.el, from which I borrowed some code, and to ConvertBase.vim plugin I used for base conversion.
I highly recommend using pathogen.vim plugin for all your plugin installations. It's so good, it should be illegal. God bless Tim Pope.