在vimrc或颜色方案本身中调整颜色 [英] Adjust colors in vimrc or rather in the color scheme itself

查看:138
本文介绍了在vimrc或颜色方案本身中调整颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

就我而言,我确实使用了日光化配色方案.到目前为止,我以前在vimrc中覆盖某些颜色属性.但是调整的数量似乎随着时间的推移而增长.特别是我倾向于调整用于UI元素的颜色,例如行号,突出显示的搜索,突出显示的组等.现在我问自己,在vimrc中完全保留颜色设置是否有意义,还是应该分叉颜色方案并将更改直接与颜色方案文件合并? >

In my case I do use the solarized color scheme. Until now I used to override certain color properties in my vimrc. But the number of adjustments seems to grow over time. Especially I tend to adjust colors used for UI elements, e.g. line numbers, highlighted search, highlight groups, etc. Now I asked myself if it makes sense to maintain color settings in my vimrc at all or if I should rather fork the color scheme and merge my changes directly with the color scheme file?

推荐答案

请勿使用特定的颜色设置污染vimrc.

Don't pollute vimrc with specific colour settings.

如果您唯一关心的是Solarized方案,那很容易.

If your only concern is Solarized scheme, that's easy.

Solarized实际上是bundle下的一个仓库.因此,对于您的问题,只需转到Solarized仓库,创建一个说"custom"的分支,然后切换到该分支,然后根据需要进行任何自定义即可.

Solarized is actually a repo under bundle if you use PathOgen. So, for your question, just go to Solarized repo, create a branch say "custom" and switch to it, then make any customization as you like.

另一种方法是像我一样将Solarized直接放入.vim/colors中.我对整个.vim文件夹进行了版本控制,但有些无知.在这种情况下,您还可以创建分支,但汗水更多.

Another method is to put Solarized directly into .vim/colors as I do. I made version control for whole .vim folder with some ignorance. In this case, you can create branch as well, with a big more sweat.

这篇关于在vimrc或颜色方案本身中调整颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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