28

My color file is quite complicated. I think it detects my term and generates color values on the fly.

Is there any way I can print out the generated colors?

3 Answers 3

52
  • Type :color to view current color-scheme.
  • Type :hi to list all color groups.
  • Type :hi Statement to view color definations for Statement. (change Statement to what you want)
1
29

This command will open a new window containing all highlight group names, displayed in their own colour:

:so $VIMRUNTIME/syntax/hitest.vim

or

:runtime syntax/hitest.vim

Then this command will turn it into an equivalent HTML file (note capital Tee Oh)

:TOhtml

Save the file and print it out in the usual way from your favourite browser.

2
  • 1
    Thanks! This is even better than last answer ;)
    – x1a0
    Commented Jul 22, 2012 at 0:27
  • 4
    BTW: An easier command to use is :runtime syntax/hitest.vim Commented Jan 31, 2015 at 11:38
1

I have Vim 8 you use :colo, :color or :colorscheme

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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