Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lilydjwg/colorizer
A Vim plugin to colorize all text in the form #rrggbb or #rgb.
https://github.com/lilydjwg/colorizer
coloring ui vim
Last synced: about 15 hours ago
JSON representation
A Vim plugin to colorize all text in the form #rrggbb or #rgb.
- Host: GitHub
- URL: https://github.com/lilydjwg/colorizer
- Owner: lilydjwg
- Created: 2011-05-04T13:37:03.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2022-01-03T10:18:47.000Z (almost 3 years ago)
- Last Synced: 2023-10-20T21:16:49.597Z (about 1 year ago)
- Topics: coloring, ui, vim
- Language: Vim script
- Homepage:
- Size: 601 KB
- Stars: 337
- Watchers: 11
- Forks: 25
- Open Issues: 10
-
Metadata Files:
- Readme: README.mkd
Awesome Lists containing this project
README
# Colorizer
Note: you are advised to use [vim-hexokinase](https://github.com/RRethy/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](https://github.com/BourgeoisBear/clrzr)
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](https://github.com/lilydjwg/colorizer/tree/master/plugin/colorizer.vim)
for more options.Screenshots:
![screenshot](https://github.com/lilydjwg/colorizer/raw/master/screenshot.png)
![screenshot](https://github.com/lilydjwg/colorizer/raw/master/screenshot-2.png)
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://github.com/lilydjwg/colorizer, also found as
[colorizer.vim on vim.org](http://www.vim.org/scripts/script.php?script_id=3567)### 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.