2

I finally took the step and started to create a colorscheme for myself. I'm using iTerm .

Here is my iTerm-color-page:

enter image description here

In Vim, there are both darkblue, blue and lightblue. But in iTerm, I can only see the normal-option and the bright-option. I've read quite a lot on ANSI-colors, and can't really figure out, why Vim have more colors available, than my iTerm-color-palette offers?

Here's an example of the corresponding colors from iTerm to Vim:

iTerm color       Vim-color
----------------------------
Normal-red        darkred
Bright-red        red 

Normal-blue       blue
Bright-blue       lightblue

How do I figure out (and set), which colors I have available to use in my Vim colorscheme?

2

By writing :help cterm-colors in Vim, then I got the left side of the following table. By trial-and-error, I tried out different colors from iTerm and figured out the following (ready to be copied into a .vim-colorscheme to help remember what is what:

" AVAILABLE ANSI COLORS IN iTerm
" 
" 0 =     Black                     - iTerm-ref: Black, normal
" 1 =     DarkBlue                  - iTerm-ref: Blue, normal
" 2 =     DarkGreen                 - iTerm-ref: Green, normal
" 3 =     DarkCyan                  - iTerm-ref: Cyan, normal 
" 4 =     DarkRed                   - iTerm-ref: Red, normal
" 5 =     DarkMagenta               - iTerm-ref: Magenta, normal
" 6 =     Brown, DarkYellow         - iTerm-ref: ??
" 7 =     Grey                      - iTerm-ref: ??
" 8 =     DarkGrey                  - iTerm-ref: ??
" 9 =     Blue, LightBlue           - iTerm-ref: Blue, bright
" 10 =    Green, LightGreen         - iTerm-ref: Green, bright
" 11 =    Cyan, LightCyan           - iTerm-ref: Cyan, bright
" 12 =    Red, LightRed             - iTerm-ref: Red, bright
" 13 =    Magenta, LightMagenta     - iTerm-ref: Magenta, bright
" 14 =    Yellow, LightYellow       - iTerm-ref: Yellow, bright
" 15 =    White                     - iTerm-ref: White, bright 

The colors with question-marks are unable to be changed (unless I'm blind or something).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.