This is a mirror of http://www.vim.org/scripts/script.php?script_id=3374
- If you use git to version your vim configs, and use pathogen
git submodule add git://github.com/kassio/ColorSelect.git bundle/ColorSelect
- Else, download ColorSelect and copy contents of subdirectory plugin to ~/.vim/plugin
You’ll need ruby with gtk gems working, to this see the follow link:
Instalando Ruby-GTK no RVM
This opens a gtk color dialog, when select a color this is writed on document.
Options
- g:FormatResultColorSelect_
- Function: Sets the format returned by ColorSelect
- Default: hexadecimal
- Possibles: ‘hex’ or ‘rgba’
- g:CaseResultColorSelect_
- Function: Sets, in hex mode, case of return
- Default: upcase
- Possibles: ‘upcase’ or ‘dowcase’
"ColorSelect
imap <F5> <esc>:ColorSelect<CR>