• Stars
    star
    336
  • Rank 121,971 (Top 3 %)
  • Language
    Vim Script
  • Created about 13 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Vim plugin to colorize all text in the form #rrggbb or #rgb.

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://github.com/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.

More Repositories

1

swapview-rosetta

Print swap usage per process. Implemented in various programming languages
C++
487
star
2

morerssplz

Convert other article sources to RSS feeds
Python
402
star
3

nvchecker

New version checker for software releases
Python
370
star
4

dotvim

My vim config
Vim Script
274
star
5

pssh

Parallel SSH Tools
Python
262
star
6

fcitx.vim

keep and restore fcitx state when leaving/re-entering insert mode
Python
234
star
7

luoxu

A Telegram userbot to index Chinese and Japanese group contents.
Python
222
star
8

winterpy

My python scripts started in winter.
Python
218
star
9

myawesomerc

My Awesome WM config files
Lua
84
star
10

dotzsh

My zsh config
Shell
56
star
11

search-and-view

Tools to make searching and viewing easy.
Python
47
star
12

xmpptalk

An XMPP bot to make a chatroom
Python
46
star
13

capture-dns

A simple program to capture and show DNS queries
Rust
40
star
14

wait-online

Wait until we're connected to the Internet
Python
40
star
15

telegram-cache-decryption

Decrypt the media cache of Telegram Desktop
Python
38
star
16

dnssnoop

show which process did what DNS queries
Python
34
star
17

stdoutisatty

Make programs think their stdout is a tty / terminal.
C
34
star
18

dotconfig

~/.config
Lua
32
star
19

ncdu-diff

ncdu fork that can compare and diff results
C
25
star
20

remotebrowser

open URLs from Windows virtual machines in the host system
Rust
24
star
21

openredir

redirect file open operations via LD_PRELOAD
C
24
star
22

taskmaid

A D-Bus task API for Wayland
Rust
24
star
23

luoxu-web

A web frontend for luoxu.
Svelte
22
star
24

abp-rules

My list of Adblock Plus rules, mainly for China websites
22
star
25

gaetalk

A chatroom application run on Google App Engine
Python
22
star
26

userscripts

My user scripts
JavaScript
21
star
27

dpms-off

Turn off monitors to save power (for Wayland)
Rust
21
star
28

2bbcode

A set of custom Pandoc writers for converting to BBCode.
Lua
21
star
29

swapview

A simple program to view processes' swap usage on Linux.
Rust
20
star
30

archrepo2

Arch Linux repository manager
Python
19
star
31

cgtree

List cgroups info in a tree
Python
17
star
32

gm-github-tweaks

Tweak GitHub to make it great again.
CSS
16
star
33

udt_py

Python UDT
C++
15
star
34

ircbindxmpp

IRC <-> XMPP bidirectional connection
Python
14
star
35

chinese-num

A Rust librrary to convert a decimal number to its Chinese form
Rust
13
star
36

spamfightbot

Another Telegram anti-spam bot without disturbance.
Python
13
star
37

compare-env

Compare the given environment variable value across all the processes
Rust
13
star
38

fiemap-rs

FIEMAP library and tools for Rust
Rust
12
star
39

tornadochat

A web chatroom using tornado
Python
12
star
40

monitor-control

The fastest way to get / set DDC values for a monitor
Rust
11
star
41

walkdir-test

a simple and naïve test to see which implementations of directory traversing is faster
Makefile
11
star
42

copy-link-address

Firefox addon to Copy Link Address with accesskey "a"
JavaScript
11
star
43

bluekeyslistener

Listen to bluetooth headphone keys (Linux only)
Rust
10
star
44

mozlz4-tool

A tool to process mozlz4 files
Rust
9
star
45

rpysh

Remote Python shell, for Linux Pythoners coping with Windows.
Python
8
star
46

bookmarked-search

Firefox addon to search the selected text using a search engine from your bookmarked search engines.
JavaScript
8
star
47

gdu-diff

Use gdu to diff and compare directory usages
Python
8
star
48

myhaskells

Haskell programs writing while learning
Haskell
7
star
49

fcitx-lua-scripts

Lua
6
star
50

paddleocr-web

A simple PaddleOCR web frontend.
Svelte
6
star
51

paperlike-i2c

i2c program for Dasung Paperlike HD e-ink monitors
Rust
6
star
52

accurate-time

Show accurate time in tmux status
Rust
5
star
53

HTTPSEverywhereUserRules

My personal HTTPSEverywhere rules
5
star
54

socat

socat - Multipurpose relay (cloned from git://repo.or.cz/socat.git) http://www.dest-unreach.org/socat/
C
5
star
55

paddleocr-service

Run PaddleOCR as a systemd service.
Shell
5
star
56

uniclip

Unify the clipboard operations for X11 and Wayland
Rust
5
star
57

fcitx-mb

A tool for interactively viewing and modifying fcitx's code tables.
Python
5
star
58

tailf.vim

asynchronous "tail -f" and other shell commands in Vim 8
Vim Script
4
star
59

simplehist

A simple program to show a histogram on the terminal.
Rust
4
star
60

android-dedupefs

A filesystem for reading Android dedupe backup
C
4
star
61

viewhtmlmsg

View an HTML email message in a browser (for text MUAs like mutt)
Python
4
star
62

website-styles

My custom styles for some websites (stylus)
CSS
4
star
63

cf-pop

Which Cloudflare® datacenter am I visiting? (Firefox addon)
JavaScript
4
star
64

git-linked

git logs with hyperlinks
Python
4
star
65

filequeue

send logs to Kafka, using the log file like a queue, without rotation.
Rust
4
star
66

vim-foldtree

Fold ASCII tree graphs in Vim
Rust
4
star
67

srcipfix

fix source IP for UDP packets with netfilter_queue
Rust
3
star
68

fetchtitle

Asynchronized URL information retriever
Python
3
star
69

imagestamp

add a stamp / watermark to a couple of images, at a chosen position for each
C
3
star
70

rust-signalbool

A simple crate to catch signals and set a boolean flag for later use.
Rust
3
star
71

mc2tg

A bot to synchronize messages from minecraft server to Telegram and back
Python
3
star
72

text-reflow-we

Firefox Android addon to allow click events to reflow text of that tag to fit screen width
JavaScript
2
star
73

lilydjwg.github.io

HTML
2
star
74

x.rs

Extract various archive formats to standalone directory.
Rust
2
star
75

reorder-extensions

Reorder Firefox's extension menu with ease (see https://bugzilla.mozilla.org/show_bug.cgi?id=1831782)
Svelte
2
star
76

open-noatime

Hook `open` and `open64` libc calls to avoid updating atimes while searching or the like.
Rust
2
star
77

fcitx5-tabledict

A tool to manipulate fcitx5 tabledict.
Rust
2
star
78

drop-serverhello

Drop ServerHello with netfilter_queue. For testing bug 1718719 of Firefox.
Rust
2
star
79

multimc-bin-pkgbuild

Repackage multimc for Arch Linux in a distribution way
Shell
1
star
80

rust-tokio-anyfd

Use any suitable file descriptor with tokio
Rust
1
star
81

my-trime

My customizations for trime
Shell
1
star
82

pyparsing_fork

My fork for pyparsing, on *GitHub*
Python
1
star
83

pid_children

A simple program outputs descendant process ids for each pid given on the command line
Rust
1
star
84

extsort-lily

An efficient external sort library for Rust
Rust
1
star
85

journal-usage

Analyze systemd journal usage by unit or by date
Rust
1
star
86

netctl-lily

Profile based systemd network management. lilydjwg's fork.
Shell
1
star
87

sys-stat

System Statistics Collector
Rust
1
star