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, the background gets forced to black.
In Vim, if your color scheme supports both a light and dark mode, you switch between by using the command: set background=dark or set background=light . In Alacritty, you can define multiple color schemes and switch between them easily in the config file alacritty.
In Ubuntu make a file with the name . vimrc in your Home directory if it doesn't exist, add colorscheme pablo in it and save it. Now restart GVim. For Windows put this file with the name _gvimrc in C:/Documents and Settings/<your-username> .
Note, termguicolors is required for correct colors to be displayed when running Vim or Neovim in a terminal. It is not an option to have this unset, it is a requirement when in terminal mode otherwise the theme will not work.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With