On Wed, Oct 19, 2016 at 11:42 PM, Erhy <[email protected]> wrote: > Hello! > I struggle with the colors in VIM. > (in the Ubuntu Subsystem of Windows 10) > Because comment lines with syntax on was not readable for me. > > I found the file rgb.txt in the folder /usr/share/vim/vim74 > but most color names are not accepted by vim > e.g. :highlight Comment ctermfg=MidnightBlue > > With numbers instead of names there a differences between 0 and 7 > but the terminal emulation knows 16 colors. > > Have you any tips? > > Erhy
Many color terminals only know 8 background and 16 foreground colors. rgb.txt doesn't apply to the console anyway, but only to the GUI, which can display (in theory) 256^3 = 16777216 colors (as 256 levels each of red, green and blue). The acceptable colors for ctermfg are found at ":help cterm-colors". Alternatively, with a GUI-capable Vim (but maybe not on Windows, you will have to check it for yourself there) you can approximate GUI colors in a console provided that it is known to Vim (via its 't_Co' setting) as able to display 88 or 256 colors: see http://vim.wikia.com/wiki/Using_GUI_color_settings_in_a_terminal#Solution_2:_the_CSApprox_plugin — in that case you can use all rgb.txt color names since you're using guibg= guifg= colors; the CSApprox plugin will translate them to something that the cterm understands. Best regards, Tony. -- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
