I have tried to change the background color in Vim the way suggested by the accepted answer here but it does not work for me.
What is wrong? (This is in the Ubuntu subsystem in Windows 10).
I have tried to change the background color in Vim the way suggested by the accepted answer here but it does not work for me.
What is wrong? (This is in the Ubuntu subsystem in Windows 10).
Adding the following to your vimrc
before any colorscheme
command should paint every character belonging to the Normal
highlight group with a yellow background, no matter what colorscheme you use:
" On Windows: %userprofile%\_vimrc
" or: %userprofile%\vimfiles\vimrc
" On Unix: $HOME/.vimrc
" or: $HOME/.vim/vimrc
augroup MyColorSchemeOverrides
autocmd!
autocmd ColorScheme * highlight Normal ctermbg=yellow
augroup END
Here is a gist of mine that explains the hows and whys of overriding colorschemes in Vim.