Vim颜色太亮(终端) [英] Vim colors too bright (terminal)

查看:151
本文介绍了Vim颜色太亮(终端)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Vim和iTerm2有问题,颜色太亮(对于所有主题).它可以与Terminal.app和MacVim一起使用,所以我想它一定是我完全错过的iTerm2中的一些设置.

I have a problem with Vim and iTerm2, the colors are too bright (for ALL themes). It works with both Terminal.app and MacVim, so I guess it must be some setting in iTerm2 I've completely missed.

下图为您显示了区别(左侧为iTerm2,右侧为MacVim/Terminal.app):

The picture below shows you the difference (iTerm2 to the left, MacVim / Terminal.app to right):

我正在使用什么:

iTerm2:内部版本1.0.0.20130624
终端类型:xterm-256
壳牌:zsh 5.0.2
Vim:版本7.3.666
OS X:10.7.5

iTerm2: Build 1.0.0.20130624
Terminal type: xterm-256
Shell: zsh 5.0.2
Vim: version 7.3.666
OS X: 10.7.5

你们知道我想念什么吗?

Do you guys have any idea what I'm missing?

推荐答案

您不应该在GUI Vim和CLI Vim中比较颜色方案:在两种情况下可以使用的颜色数量非​​常不同,因此不能进行任何比较一文不值.您可以在GUI Vim中获得非常微妙的颜色,但只能在CLI Vim中对其进行近似.

You shouldn't compare colorschemes in GUI Vim and in CLI Vim: the number of colors that can be used in both contexts is very different and it makes any comparison worthless. You can get very subtle colors in GUI Vim but you can only approximate them in CLI Vim.

用于gui的值和用于cli的值可能不同,这说明了您所看到的.

The values used for the gui and those used for the cli are probably different which explains what you see.

在gui和cli vim中具有相同颜色的 only 方法是仅使用gui的xterm调色板中的颜色.

The only way to have the same colors in gui and cli vim is to use only colors from the xterm palette for the gui.

在Vim中,您可以:set background=light(并阅读:help 'background')来查看它是否会使颜色变暗.

In Vim, you could :set background=light (and read :help 'background') to see if it makes the colors less bright.

在终端仿真器中,您可以查看是否存在涉及颜色亮度或粗体用法的设置.

In your terminal emulator, you could see if there's a setting that deals with color brightness or the usage of bold.

这篇关于Vim颜色太亮(终端)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆