Awesome Open Source
Awesome Open Source

Colorizer

Note: you are advised to use vim-hexokinase instead. Or if you do not want to build a Go binary and want pure VimScript instead, you can try BourgeoisBear's fork which is expected to be faster and well-maintained.

A Vim plugin to colorize all text in the form #rgb, #rgba, #rrggbb, #rrgbbaa, rgb(...), rgba(...). See the comment at the beginning of the plugin for more options.

Screenshots:

screenshot

screenshot The left screen shows colortest.txt in Vim in xfce4-terminal. The right screen shows colortest.txt in gVim.

Installation

Pathogen, Vundle, etc.

cd ~/.vim/bundle
git clone https://github.com/lilydjwg/colorizer

Manually

Use make install and make uninstall to quickly install/uninstall the script, or simply copy plugin/colorizer.vim and autoload/colorizer.vim to your .vim dir.

Origin

This version is based on https://awesomeopensource.com/project/lilydjwg/colorizer, also found as colorizer.vim on vim.org

Known issues

This plugin is still inefficient for large files. I strongly sugguest you enable it only when you need it, or set the g:colorizer_maxlines variable, e.g. to 1000. There seems to be no way to get current displaying lines and do work with them in Vim.

Alternatives To Colorizer
Select To Compare


Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Plugin (113,732
Form (20,185
Vim (18,651
Vim Script (11,469
Rgb (4,989
Vim Plugin (2,502
Gvim (524
Coloring (20