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?
To install a new color scheme for Vim, you will need to download it from the git hub repository. Here I am going to download a vim theme “Monokai” from the Git repository. For Monokai color scheme, open the following link, then right-click and save it as . vim in your Downloads directory.
Once you close Vim, the color scheme returns to the default settings. To make the changes permanent, modify Vim's configuration file with the wanted color settings. First, you need to open the Vim startup file, located in /etc or users home directory under the name .
:color
to view current color-scheme.:hi
to list all color groups.:hi Statement
to view color definations for Statement. (change Statement to what you want)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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With