sponsor Vim development Vim logo Vim Book Ad

ColorX : A script that lets you insert hex color codes by using OS X's color picker

 script karma  Rating 18/6, Downloaded by 1220  Comments, bugs, improvements  Vim wiki

created by
Maximilian Nickel
script type
This script lets you insert hex or RGB color codes directly into the buffer by using OS X's color picker. This can for example be useful for web developers who are editing their CSS files with Vim on OS X or similar tasks. Furthermore, when the cursor is over a hex color code like #ffffff, this is set as the starting color for the color picker.

:ColorHEX or :ColorRGB will bring up the color picker. After a color has been selected the hex or RGB values will be inserted at the current position in the buffer.
install details
Just copy the script into you plugins folder. Obviously the script will only work on OS X

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
colorx.vim 0.3 2010-10-01 7.0 Maximilian Nickel Pick up hex color codes under the cursor and display them when the color choser opens
colorx.vim 0.2 2010-03-13 7.0 Maximilian Nickel Initial upload
ip used for rating:

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.