vim-one icon indicating copy to clipboard operation
vim-one copied to clipboard

Define colors for the integrated terminal

Open rvighne opened this issue 4 years ago • 3 comments

This sets the 16 default colors within the Vim 8 integrated terminal (via g:terminal_ansi_colors) so that terminal apps look as expected. The colors are in terms of the already-defined variables, so it should stay consistent and work in light mode too.

Here's a comparison with One Half Dark from Windows Terminal. Note that WT decided to use a very bright color for white, but I've chosen to stick with the colorscheme so it looks better next to actual editor buffers.

Comparison with Windows Terminal's "One Half Dark"

rvighne avatar Feb 27 '21 10:02 rvighne

Terminal color was removed on #104 because the colors were inconsistent when using a light theme.

I second to re-add the colors, provided that we add support to the light theme too.

lygamac avatar Mar 24 '21 22:03 lygamac

These colors use the variables defined by the theme, like syntax_bg/syntax_fg. Since those are set conditionally based on the light/dark mode, I believe it works fine in that case. Here is a screenshot:

Screenshot of Vim terminal colors in light mode

Other terminal apps also look OK (actually I'm not at all a fan but actual light mode users can judge whether this looks correct 😁):

image

rvighne avatar Mar 26 '21 02:03 rvighne

Due to inactivity from the maintainers, I've merged this (and some other long-standing PR's) into my fork: https://github.com/rvighne/vim-one/pull/3

rvighne avatar Jun 04 '22 22:06 rvighne