Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change the unused background color in vim?

Tags:

highlight

vim

How do you change the unused / bottom portion of the vim editor? The picture will hopefully clarify my terrible description :).

vim editor screenshot

like image 786
loeschg Avatar asked Jul 23 '13 18:07

loeschg


People also ask

How do I change the background color in vim?

The ctermfg=white is used to set the foreground color to white in a terminal text editor. Finally, the ctermbg=black is used to set the background color to black in a terminal text editor.

How do I make my vim background darker?

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 .


1 Answers

That section is controlled by the highlight group NonText. So you can add the following line after your colorscheme line to set the background color to blue.

highlight NonText ctermbg=blue

Of course change blue to whatever color you want. Also if you are in gvim you will want to use guibg= to set the background color.

like image 79
FDinoff Avatar answered Sep 21 '22 17:09

FDinoff