Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to have hex codes been displayed inline, no matter what filetype is activated in the current session.

So far I've found something existent and suitable for my needs: https://github.com/skammer/vim-css-color/blob/master/after/syntax/css.vim

I tried to recode the syntax file to effect all types of code, but didn't get it in the end. To be honest, I've just no clue about coding for vim. Could anyone help? I would be really glad if someone could... =/

share|improve this question
Ehm, no I dont want to edit in hex mode. I would like to have color previews of the hex color values in an edited file. Just to have an overview of choosen colors, f.i. in a vim theme file. – triton Apr 22 '13 at 9:33
up vote 3 down vote accepted

You can try the alternative colorizer - Highlight #rrggbb or #rgb color plugin from Christian Brabandt. It works for all filetypes, not just CSS.

share|improve this answer
Perfect, thank you very much. I didn't find that... =D – triton Apr 22 '13 at 10:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.