sponsor Vim development Vim logo Vim Book Ad

pygtk_color : PyGtk2 color selection dialog

 script karma  Rating 7/5, Downloaded by 533  Comments, bugs, improvements  Vim wiki

created by
David Konsumer
 
script type
utility
 
description
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.
 
install details
On linux, Put color_select in your path and chmod 755 it.
Put pygtk_color.vim into your plugin folder (~/.vim/plugin/ or /usr/share/vim/vim63/plugin/ for me.)
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
pygtk_color.tgz 1 2004-08-17 6.0 David Konsumer Initial upload
ip used for rating: 3.129.211.87

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github