You are not logged in.
Pages: 1
Hi,
I'm a bit confused. I'd like to change a vim color scheme but I have no clue what colors the numbers (e.g. ctermbg=236) stand for (only for 16 colors).
I also tried this but it complains about missing rgb.txt (I have vim 7.2).
Anyone has a list of all 256 colors?
Last edited by thms (2010-07-22 12:35:41)
Offline
There is a Vim Wiki tip here: Xterm256 color names for console Vim
To know or not to know ...
... the questions remain forever.
Offline
This page has a nice little block of the 256 color palette with tooltips showing the number when you place your mouse over a color.
Last edited by Square (2010-07-22 12:25:29)
Offline
Thanks guys!
Offline
Took a minute to write this for you (as well as myself).
#!/usr/bin/env python
fg = '\033[38;5;'
bg = '\033[48;5;'
for i in range( 0, 256):
n = str(i)
fgstr = fg + n + 'm' + n
bgstr = bg + n + 'm' 'XXXXX'
print fgstr, bgstr, '\033[0m'
Last edited by Square (2010-07-22 14:21:06)
Offline
Great one...thx again!
Offline
Pages: 1