OSX vim 背景被终端背景覆盖

发布于 2025-01-03 20:03:39 字数 397 浏览 3 评论 0原文

我在 Lion OSX 中使用 vim 7.3。

无论我尝试应用什么主题,都会保留终端的背景颜色,在我的例子中,我将其设置为 Silver Aerogel 主题。

奇怪的是,使用 Zenburn 主题可以工作,但一段时间后就会中断,导致看起来像所附图像的东西。在我的 vimrc 中,我设置了 set t_Co=256。我的 vimrc 文件: http://dpaste.com/699961/

大家帮忙吗?

在此处输入图像描述

I'm using vim 7.3 in Lion OSX.

Whatever theme I have tried to apply retains the terminal's background color, which in my case I've set as Silver Aerogel theme.

Curiously, using the theme Zenburn works but breaks after awhile resulting in something that looks like the attached image. In my vimrc, I have this set set t_Co=256. My vimrc file: http://dpaste.com/699961/

Help guys?

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦年海沫深 2025-01-10 20:03:39

我曾经遇到过这个问题...然后我了解到为gvim或macvim设计的配色方案不一定在256终端兼容。如果它不是为 256 色终端设计的,请尝试 csapprox 插件。 (csappox 描述)

I used to have this problem... Then I learned that color schemes designed for gvim or macvim are not necessarily compatible in a 256 terminal. If it wasn't designed for a 256 color terminal, try the csapprox plugin. (csappox description)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文