colors


Ⅰ. 插件描述

Functions to manipulate color values (vim7).

Ⅱ. 基本信息

创建日期:  2006-01-14
使用用户:  18
Github星:  1
插件作者:  Mikolaj Machowski

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/colors'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/colors'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/colors'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/colors

Ⅳ. 文档说明

Rgb2Hsv - change RGB into HSV colorspace
Hsv2Rgb - change HSV into RGB colorspace

r, g, b [0..255]
h [0..359]
s, v [0..255] sic!

Hex2Rgb - change Hex notation (#ffffff) into rgb [255,255,255]
Rgb2Hex - change RGB notation into Hex notation
Txt2Rgb - change text names of functions into RGB notation (names according to rgb.txt of X consortium)

In addition there is function ColorFormula which will tell if brightness and
color differences are good enough (according to W3C) to became background and text colors.
Good for testing colorschemes on HTML sites and Vim.

添加新评论