The Support OS X’s Color picker thread on the MacVim mailinglist made me hack on a little vim script that lets you select a color in OS X’s color picker and automatically insert it at the current postition in the buffer.
This can for example be useful for web developers who are editing their CSS files with Vim or similar tasks.
Installation
You can grab the script here
To install the script, as usual put it into
~/.vim/plugins
Usage
"to insert hex values at the current position :ColorHEX "to insert RGB values at the current position :ColorRGB
Update (2010-03-13)
Uploaded new version 0.2 that keeps the focus on MacVim or the Terminal and checks for OS X. Also renamed the script to colorx.vim
The script is now also hosted at Vim scripts