I'm trying to make my own colorscheme in Vim, but are struggling to see the available colors in iTerm. Here are my iTerm-color-settings:
Here's how I can use it in Vim (for example using ctermfg=darkred
):
iTerm color Vim-color
----------------------------
Normal-red darkred
Bright-red red
Normal-blue blue
Bright-blue lightblue
So it appears to me, that Vim has both
'darkred' 'red' and 'lightred'
... But as you can see, then sometimes the 'Normal'-color is the Vim-dark-color, and sometimes the it's just the regular color. Is there a reason for that? And are there a system for it, or how does Vim know which color in iTerm to use?
I don't know, if it's of any help, but if I edit an .itermcolors-file, then the colors look like this:
<key>Ansi 1 Color</key>
<dict>
<key>Blue Component</key>
<real>0.30443088503649635</real>
<key>Green Component</key>
<real>0.18199703467153286</real>
<key>Red Component</key>
<real>0.83819000912408759</real>
</dict>
:help cterm-colors
that there's an explanation of the 16 available colors. It seems thatblue
andlightblue
refers to the same thing. So some of the colors points to the same ANSI-color.