为什么我的所有 MacVim 配色方案看起来都不正确?

发布于 2025-01-05 08:16:20 字数 244 浏览 4 评论 0原文

我的 MacVim 配色方案有问题。我的 .vimrc 中有“语法”,我主要使用 Python 工作。

作为示例,我附上了 MacVim 中“默认”配色方案的屏幕截图。我遇到了这个问题,所有不同的方案都有不同程度的颜色差异。每当我在网上找到我喜欢的方案时,它看起来都不像屏幕截图中的那样。

关于问题是什么有什么想法吗?

此处

I am having a problem with my MacVim color schemes. I have 'syntax on' in my .vimrc and I work mostly with Python.

As an example, I have attached a screenshot of what the "default" color scheme looks like in MacVim to me. I am having this problem with varying degrees of color differences for all the different schemes. Whenever I find a scheme I like online, it never looks like it does in the screenshot.

Any ideas on what the problem is?

here

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

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

发布评论

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

评论(2

铁轨上的流浪者 2025-01-12 08:16:20

许多主题提供深色背景颜色和浅色背景颜色的模式。如果您想继续使用这个主题,请尝试运行:

:set background=light

我见过的大多数主题都是在设计时考虑到深色背景和浅色文本 - 我个人发现大部分黑色的屏幕比大部分黑色的屏幕更容易伤害我的眼睛-白色屏幕——所以也许您只需将背景颜色更改为深色即可。在这种情况下,您需要运行:

:set background=dark

Many themes provide modes for both dark background colors and light background colors. If you'd like to keep using this theme, try running:

:set background=light

Most of the themes I've seen were designed with a dark background and lighter text in mind -- I personally find a mostly-black screen easier on my eyes than a mostly-white screen -- so perhaps you just need to change the background color to something dark. In which case, you'd then want to run:

:set background=dark
温柔戏命师 2025-01-12 08:16:20

问题似乎出在 ~/.gvimrc 中,看看它对突出显示做了什么(如 highlight NonText guibg=grey80)。我刚刚将它们放入 if !exists("stupid_colors") 中。

The problem seems to be in ~/.gvimrc, look at what it does with the highlights (such as highlight NonText guibg=grey80). I've just placed them in an if !exists("stupid_colors").

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