Adjust colors in vimrc or rather in the color scheme itself

天大地大妈咪最大 提交于 2019-12-13 06:20:17

问题


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?


回答1:


Don't pollute vimrc with specific colour settings.

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

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.

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.



来源:https://stackoverflow.com/questions/15730204/adjust-colors-in-vimrc-or-rather-in-the-color-scheme-itself

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!