为什么我的所有 MacVim 配色方案看起来都不正确?
我的 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
许多主题提供深色背景颜色和浅色背景颜色的模式。如果您想继续使用这个主题,请尝试运行:
我见过的大多数主题都是在设计时考虑到深色背景和浅色文本 - 我个人发现大部分黑色的屏幕比大部分黑色的屏幕更容易伤害我的眼睛-白色屏幕——所以也许您只需将背景颜色更改为深色即可。在这种情况下,您需要运行:
Many themes provide modes for both dark background colors and light background colors. If you'd like to keep using this theme, try running:
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:
问题似乎出在 ~/.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 anif !exists("stupid_colors")
.