开发者

force vim background to black

开发者 https://www.devze.com 2023-04-09 11:09 出处:网络
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

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

精彩评论

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