yongjieyongjie
yongjieyongjie

Reputation: 893

Vim solarized colorscheme not displaying correctly in VS Code integrated terminal

Issue

Vim with solarized colorscheme is not displaying correctly in VS Code integrated terminal.

Details

I'm using the solarized colorscheme from https://github.com/altercation/vim-colors-solarized.

When working in VSCode, Vim will open in the integrated terminal when I'm writing git commit messages, but the colors will be off.

I have tried playing around with different values for t_Co:

When t_Co is set to 16: Vim with t_Co set to 16

When t_Co is set to 8: Vim with t_Co set to 8

Edit:

Seems like it's not possible to easily configure VS Code's terminal colorscheme. A temporary workaround is to set let g:solarized_termcolors=256 and let the solarized colorscheme use VS Code's theme.

Upvotes: 2

Views: 1990

Answers (2)

user21943220
user21943220

Reputation: 1

I had a issue with text not showing after doing a "git commit" but it happens any time I tried to open a vim window inside terminal. A workaround was just to click the "Debug Console" and back to "Terminal" to get it to load the text properly.

Upvotes: 0

herrbischoff
herrbischoff

Reputation: 3326

Have you read the README of the Solarized repo?

If you are going to use Solarized in Terminal mode (i.e. not in a GUI version like gvim or macvim), please please please consider setting your terminal emulator's colorscheme to used the Solarized palette. I've included palettes for some popular terminal emulator as well as Xdefaults in the official Solarized download available from Solarized homepage. If you use Solarized without these colors, Solarized will need to be told to degrade its colorscheme to a set compatible with the limited 256 terminal palette (whereas by using the terminal's 16 ansi color values, you can set the correct, specific values for the Solarized palette).

You're probably going to have to set those colors manually, see: Color theme for VS Code integrated terminal

Upvotes: 3

Related Questions