Reputation: 2283
Okay, I'm rather new to vim. I couldn't figure out how to change background colors. I'm editing my vimrc file to set these colors, but I couldn't find anything for background colors.
I'm using a color scheme and I just need to know how I could override it or what is to look for so I can change it in my colors/theme.vim file. I need to change two background colors. I point to them in the image attached.
Upvotes: 3
Views: 3856
Reputation: 2283
As it turns out the big blue section is controlled by highlight NonText
I added my .vimrc file to this:
highlight NonText ctermfg=59 ctermbg=0 cterm=NONE guifg=#414e58 guibg=#232c31 gui=NONE
and that gave me exactly what I wanted.
Upvotes: 3
Reputation: 1370
VIM has some color scheme, which store under /usr/share/vim/vimcurrent/colors
, and it named as desert.vim
for example.
you can simply add one line in your vimrc
file, which should be locate in your $HOME
, if there is NOT, you can create one, and add:
colorscheme desert
also some command you can use to set the background color like:
set background=light
or
set background=dark
I think for SSH, light is better:) If you use X windows, I suggest to use bensday.vim
, it can be download from web
Upvotes: 0