user-interface - Vim 日晒配色方案在 VS Code 集成终端中无法正确显示

标签 user-interface vim terminal visual-studio-code

问题

使用 Solarized 颜色方案的 Vim 在 VS Code 集成终端中无法正确显示。

详细信息

我正在使用 https://github.com/altercation/vim-colors-solarized 中的日光配色方案.

在 VSCode 中工作时,当我编写 git 提交消息时,Vim 将在集成终端中打开,但颜色会关闭。

我尝试过使用不同的 t_Co 值:

t_Co设置为16时: Vim with t_Co set to 16

t_Co设置为8时: Vim with t_Co set to 8

编辑:

似乎无法轻松配置 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/

相关文章:

python - 如何重构此代码以便不会发生 Pickle 'Buffer Region' 错误

macos - 在 shell 脚本中调用 cd

linux - 如何查看程序的执行时间?

终端和 shell 脚本之间的 Bash glob 模式行为不同

user-interface - 如何在 jQuery Mobile 中使用页面加载来阻止 UI

java - 为 Android 创建 GUI 的具体过程是什么?

javascript - "Swapping"AngularJS 中的 div 和数据

在 3.5.3 virtualenv 中运行时 Vim 中的 Python 错误

使用 Vundle 安装时出现 Git 错误

json - 将 Vim 宏应用于多行