Friday, April 21, 2023

Unexpected cterm-colors

I know colorschemes have been a source of issue for ignorant vimmers
for a long time. This is not an attempt to restart old conversation. I
am looking for pointers where to research this question.

From ':h cterm-colors':

NR-16 NR-8 COLOR NAME
0 0 Black
1 4 DarkBlue
2 2 DarkGreen
3 6 DarkCyan
4 1 DarkRed
5 5 DarkMagenta
6 3 Brown, DarkYellow
7 7 LightGray, LightGrey, Gray, Grey
8 0* DarkGray, DarkGrey
9 4* Blue, LightBlue
10 2* Green, LightGreen
11 6* Cyan, LightCyan
12 1* Red, LightRed
13 5* Magenta, LightMagenta
14 3* Yellow, LightYellow
15 7* White

The color codes for NR-16 don't make sense to me. Take Yellow, for example.
Why is it numbered 14? 16-bit terminals use 11 for bright yellow [1]. Why is
it different inside Vim?

For extra info: I used guicolors before. That's why I hadn't noticed this.

[1]: https://jeffkreeftmeijer.com/vim-16-color/


--
Enan

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20230421165606.00002f18%40gmail.com.

No comments:

Post a Comment