Ⅰ. 插件描述
Preview colours in source code while editingⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/css-color'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/css-color'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/css-color'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/css_color
Ⅳ. 文档说明
A very fast color keyword highlighter with context-sensitive support for many language syntaxes.
Originally an obsessively optimised fork of vimscript #2150 plus extra features:
multiple color highlights per line
rgb(), rgba(), hsl() support for CSS
support for various alternative CSS languages like Less and Sass
support for various non-CSS languages like VimL, Javascript, and Python
Screenshot available at
https://github.com/ap/vim-css-color