Vim colorscheme shows wrong colors

I just grabbed the "Ultimate Vim Distribution" (http://vim.spf13.com/) that came with a bunch of flowers.

For some reason, setting a color scheme inside my .vimrc (e.g. colorscheme corporation) results in completely different colors than the color scheme actually defines. In addition, manually entering: colorscheme corporation, when vim uploaded the file, causes the colors to change to the correct scheme.

When you download the file:: colo and echo g: colors_name print the corporation, as you would expect. "t_Co" is set to 256 before the color scheme is set (if that matters). I have all the ideas!

Thanks!

+4
source share
2 answers

This seems to be just a GUI color scheme. Not so much if you do not want to write a terminal version.

When you see that the color scheme is not working properly, you can always try it in GVim with :gui<cr> . If you look at the code, it has a GUI-only style. Here is an example line from this diagram:

hi FoldColumn gui=italic guifg=#192224 guibg=#A1A6A8

And here is the line from Molokai, which is the color scheme for both the graphical user interface and the versions of Vim:

hi FoldColumn ctermfg=67 ctermbg=16

As you can see, colors are not RGB values. cterm stands for the term color.

+1
source

When the color scheme determines only the colors for GVIM, the version of the Vim GUI, you can, if you have a color terminal with support for 88 or 256 colors, use the CSApprox plugin to convert (once or automatically during Vim launch) the color definition for the terminal .

+1
source

Source: https://habr.com/ru/post/1440418/


All Articles