开发者

force vim background to black

Is there any way, in my vimrc, to override the background setting of my colorscheme and force it to black? I'm looking for something like

set colorscheme=wombat256
override_background(black)

so that whatever scheme I select, t开发者_开发问答he background gets forced to black.


 colorscheme wombat256
 highlight Normal guibg=black guifg=white
 set background=dark

Tweak to taste :)

@edit: after reading you later comment I suspect you'll find you need to override more related highlight (group) background colors. It'll be clearest which ones, by reading the existing color schemes


This is what worked for me:

colorscheme wombat256
hi Normal ctermbg=16 guibg=#000000
hi LineNr ctermbg=16 guibg=#000000
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜