Ⅰ. 插件描述
Color picker for console & GUI that can match colors.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'naquad/vim-picker'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'naquad/vim-picker'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'naquad/vim-picker'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/naquad/vim-picker
Ⅳ. 文档说明
VIM Color Picker
Why?
When you're editing VIMs syntax files you have dozens of hl statements.
Each statement has 6 color parameters:
- guifg - for gVIM text color
- guibg - for gVIM text background color
- ctermbg - text color for 256-colored terminal
- ctermfg - text background color for 256-colored terminal
- termfg - 16-color terminal text color
- termbg - 16-color terminal background color
And they all must look alike. Well, thats the plan at least.
The problem is that you should not just make up your color scheme,
but also code it, test it and make all types of terminals look alike.
This is daunting. Very daunting.
Recently I've been trying to do that and came to conclusion that I'm doing it wrong.
This little script tries to solve the problem.
Features
- Implements CIEDE2000 algorithm
for automatically matching your colors (especially useful for 256-GUI hex matching). - Nicely previews result.
- Generates
hlline so you won't have to type colors yourself. - Drag and drop colors around. After you've chosen one color you can just drag & drop it to other holders.
Color will be approximated as needed. - Can parse lines and understands named colors.
Screenshots

Don't be afraid of that huge palette, you can still use color wheel. Its value will
be used to find nearest color.
Requirements
Requires Python 2.7 and Gtk2 Python bindings.
Usage
$ git clone https://github.com/naquad/vim-picker.git
$ cd vim-picker
$ ./picker.pyYou may have to change first line of picker.py (shebang) to make sure
it points to right Python interpreter.
Credits
Thanks to EasyRGB for CIEDE2000 implementation.
Bugs & Features
All goes to issues.