覆盖colorscheme [英] Override colorscheme

查看:119
本文介绍了覆盖colorscheme的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我经常发现自己想要在colorscheme中改变一些东西,但我不想编辑原始文件。我尝试把我的变化在'〜/ .vim / after / colors / blah.vim',但这对我不起作用。

I often find myself wanting to change just something little in a colorscheme, but i don't want to edit the original file. I tried putting my change in '~/.vim/after/colors/blah.vim', but that doesn't work for me.

例如,我想更改BusyBee.vim中的CursorLine高亮。

Example, I want to change the CursorLine highlight in BusyBee.vim..

〜/ .vim / colors / BusyBee.vim

~/.vim/colors/BusyBee.vim

我创建文件'〜/ .vim / after / colors / BusyBee.vim'并添加:

I create the file '~/.vim/after/colors/BusyBee.vim' and add this:

hi CursorLine    guibg=#000000 ctermbg=Black cterm=none

我看不到变化。当然,如果我改变原来的BusyBee.vim行,但我喜欢不喜欢这样做。

However, i don't see the change. Of course it works if i change the line in the originial BusyBee.vim, but like i said i'd prefer not to do that.

Doing ...

Doing...

:colo Busy<TAB>

显示我...

BusyBee  BusyBee


推荐答案

请查看 AfterColors.vim ,它将允许您使用〜/ .vim / after / colors / BusyBee.vim 方法。

Have a look at AfterColors.vim, it will enable you to to use the ~/.vim/after/colors/BusyBee.vim method.

这篇关于覆盖colorscheme的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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