Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 617
x1a0 Avatar asked Jul 19 '12 03:07

x1a0


People also ask

How do I download vim color scheme?

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.

Where is vim color scheme?

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 .


2 Answers

  • 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)
like image 187
kev Avatar answered Oct 01 '22 21:10

kev


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.

like image 36
lessthanideal Avatar answered Oct 01 '22 21:10

lessthanideal