On 11 May 2019, at 13:10, Bram Moolenaar <[email protected]> wrote: > >> >> I am a bit puzzled by the note in `:help highlight-cterm`: >> >> Note: Many terminals (e.g., DOS console) can't mix these attributes with >> coloring. Use only one of "cterm=" OR "ctermfg=" OR "ctermbg=“. >> >> Virtually all colorschemes I have seen use ctermfg AND ctermbg AND cterm. >> >> The note above is also at odds with `:help cterm-colors`, which states: >> >> If you want to set the bold attribute in a different way, put a "cterm=" >> argument AFTER the "ctermfg=" or "ctermbg=" argument. >> >> Which implies that cterm and ctermfg/ctermbg can coexist. >> >> Perhaps, the above note is a thing of the past and should be removed? > > It is not of the past, the basic ANSI terminal still only has 8 or 16 > colors.
I have never encountered an issue using ctermfg and ctermbg (and cterm) in the same definition, even with as few as eight colors, provided that the values are in the 0-7 range. Perhaps it is because I am mostly working with xterm, or I haven't looked hard enough. I am curious which terminals one might use in Unix/Linux/macOS land to experiment with terminal emulators' weirdness. Looking at the colorschemes distributed with Vim, it seems that the "xor rule" of highlight-cterm is not honored. I guess that they are portable enough nonetheless. Anyway, thank you both for the feedback! Life. -- -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/E6CEAA9C-25A9-427C-A190-D7499E81EB6B%40icloud.com. For more options, visit https://groups.google.com/d/optout.
