Vim color picker script for OS X
Vim script
Switch branches/tags
Nothing to show
Latest commit aabcb62 Mar 17, 2014 @iandoe iandoe Merge pull request #6 from othree/hsl
Support CSS HSL value
Failed to load latest commit information.
plugin Fix rgb 100 bug Mar 17, 2014 Add setting to change target application Mar 7, 2014
screenshot.png added a screenshot Mar 6, 2012

Vim color picker script for OS X

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.


PS: For those of you wondering, the css color highlight in vim is the vim-css-color plugin


"to insert hex values at the current position
"to insert RGB values at the current position

The plugin detects if you're running MacVim and falls back to If you want to use iTerm, do this:

let g:colorpicker_app = ''


Update (2012-06-03)

Hosting to github so it's not lost.

Update (2010-10-01)

Updated to version 0.3. New feature: pick up the hex color code under the cursor.

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