When I try to change the background colors in .vimrc
or directly in Vim using the command:
set background=dark
... it doesn't affect my background at all. Neither does the light
option. However, it looks okay when I run gvim.
Is there a way to change the background in Vim without changing my Konsole settings?
EDIT Okay, there is a difference between guifg/guibg and ctermfg/ctermbg. While the GUI accepts lots of different color combinations, cterm allows only few standard ones.
In a terminal emulator like konsole or gnome-terminal, you should to set a 256 color setting for vim.
After that you can to change your background.
As vim's own help on
set background
says, "Setting this option does not change the background color, it tells Vim what the background color looks like. For changing the background color, see |:hi-normal|."For example
will write in white on blue on your color terminal.
Try adding
to your
.gvimrc
too. This work well for me.Using
set bg=dark
with a white background can produce nearly unreadable text in some syntax highlighting schemes. Instead, you can change the overall colorscheme to something that looks good in your terminal. The colorscheme file should set the background attribute for you appropriately. Also, for more information see: