Search code examples
vimcolor-scheme

How to print VIM current color scheme?


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?


Solution

  • 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.