pygtk_color


Ⅰ. 插件描述

PyGtk2 color selection dialog

Ⅱ. 基本信息

创建日期:  2004-08-17
使用用户:  1
Github星:  1
插件作者:  David Konsumer

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

This will add a menu item in gvim called 'Color' that will allow you to insert a web style hex color value (like '#ffffff'), or python RGB tuple (like (255,255,255) ) after the current line (if you know how to insert at current position, send me an email: david.konsumer at gmail. )

Screenshot: http://konsumer.memebot.com/vim_color_select.png

Included is a python script called 'color_select' that requires pygtk.

In windows, you could write one using VB, or install python and pygtk to use it.

Maybe eventually I'll write a wxwindows dialog for everybody.

The reason I did this, instead of using http://www.vim.org/scripts/script.php?script_id=927 was that I wanted to be able to grab color values from the screen, and I like the gtk2 color dialog alot.

I tested this on Debian unstable with gvim 6.3, python  2.3.4 and pygtk 2.

添加新评论