Skip to content

Latest commit

 

History

History
executable file
·
40 lines (27 loc) · 1.07 KB

README.textile

File metadata and controls

executable file
·
40 lines (27 loc) · 1.07 KB

ColorSelect for VIM

This is a mirror of http://www.vim.org/scripts/script.php?script_id=3374

Install

  • 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

Dependencies

You’ll need ruby with gtk gems working, to this see the follow link:
Instalando Ruby-GTK no RVM

Features

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’

To add a shortcut


"ColorSelect
imap <F5> <esc>:ColorSelect<CR>