简体   繁体   English

Vim日光照射的配色方案无法在VS Code集成终端中正确显示

[英]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. Vis with solarized colorscheme的Vim在VS Code集成终端中无法正确显示。

Details 细节

I'm using the solarized colorscheme from https://github.com/altercation/vim-colors-solarized . 我正在使用来自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. 在VSCode中工作时,当我编写git commit消息时,Vim会在集成终端中打开,但是颜色会熄灭。

I have tried playing around with different values for t_Co : 我尝试过为t_Co使用不同的值:

When t_Co is set to 16 : t_Co设置为16 t_Co设置为16的Vim

When t_Co is set to 8 : t_Co设置为8 t_Co设置为8的Vim

Edit: 编辑:

Seems like it's not possible to easily configure VS Code's terminal colorscheme. 似乎无法轻松配置VS Code的终端颜色方案。 A temporary workaround is to set let g:solarized_termcolors=256 and let the solarized colorscheme use VS Code's theme. 临时的解决方法是设置let g:solarized_termcolors=256 ,让日光化的色彩方案使用VS Code的主题。

Have you read the README of the Solarized repo? 您是否阅读了Solarized回购的README

If you are going to use Solarized in Terminal mode (ie not in a GUI version like gvim or macvim), please please please consider setting your terminal emulator's colorscheme to used the Solarized palette. 如果要在终端模式下使用Solarized(即不在诸如gvim或macvim的GUI版本中)使用,请考虑将终端仿真器的配色方案设置为使用Solarized调色板。 I've included palettes for some popular terminal emulator as well as Xdefaults in the official Solarized download available from Solarized homepage. 我在Solarized主页的官方Solarized下载中包含了一些流行的终端仿真器的调色板以及Xdefaults。 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). 如果您使用没有这些颜色的Solarized,则需要告知Solarized将其颜色方案降级为与有限256端子调色板兼容的设置(而通过使用端子的16 ansi颜色值,您可以为Solarized设置正确的特定值调色板)。

You're probably going to have to set those colors manually, see: Color theme for VS Code integrated terminal 您可能必须手动设置这些颜色,请参见: VS Code集成终端的颜色主题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM