问题
使用 Solarized 颜色方案的 Vim 在 VS Code 集成终端中无法正确显示。
详细信息
我正在使用 https://github.com/altercation/vim-colors-solarized 中的日光配色方案.
在 VSCode 中工作时,当我编写 git 提交消息时,Vim 将在集成终端中打开,但颜色会关闭。
我尝试过使用不同的 t_Co
值:
编辑:
似乎无法轻松配置 VS Code 的终端颜色方案。临时解决方法是设置 let g:solarized_termcolors=256
并让 Solarized 颜色方案使用 VS Code 的主题。
最佳答案
您阅读过 Solarized 存储库的自述文件
吗?
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).
您可能需要手动设置这些颜色,请参阅:Color theme for VS Code integrated terminal
关于user-interface - Vim 日晒配色方案在 VS Code 集成终端中无法正确显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57584786/