Wednesday, December 26, 2018

Re: Question about color settings

On Wed, Dec 26, 2018 at 11:32 AM Gabor Urban <urbangabo@gmail.com> wrote:
>
> Hi,
>
> I have made some VIM color schemes, but I still have some problems. The most disturbing is
> the difference between the term... and cterm setting. I did look it up on the net, but could
> not find appropriate information. Can anyone help?

The "term" settings are for monochrome terminals, whose text can be
bright or dim, or reverse-video, but where no contrasting colors are
possible. I had such a video screen (a yellow-and-black CRT on a
Hercules graphic card) when I started using MS-DOS on a PC-AT several
decades ago, but nowadays AFAIK they are only to be found in museums.
The "cterm" settings are for text-only color videos, and the "gui"
settings are for gvim (or for the MacVim GUI).
>
> I am using MS Windows both in GUI and command prompt mode. What kind of terminal is set when I
> start VIM from a DOS command prompt?

When you start it as "vim", and it displays your edited text inside
the DOS box, it uses the "cterm" settings, unless 'termguicolors' is
on, which is not the default. When you start it as "gvim", or when
'termguicolors' is on, it will use the "gui" settings. It would only
use the "term" settings if you were running on a monochrome terminal;
I'm not sure Windows can be used on such a terminal.

See «:help 'termguicolors'» about what kinds of hardware and software
are necessary for that option to work.
>
> Looking for your answer...

HTH
>
> --
> Urbán Gábor
>
> Linux is like a wigwam: no Gates, no Windows and an Apache inside.

:-)

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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment