Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make gvim 7.2 background black

Tags:

vim

vi

I am sick and tired of the white background when I edit C/C++ etc. I want the black backround. That is what I currently have in my .vimrc file in regard to coloring. Please help me change it:

if !has('gui_running')
    set t_Co=8 t_md=

highlight NORMAL  ctermbg=black ctermfg=white
like image 532
vehomzzz Avatar asked Oct 08 '09 19:10

vehomzzz


People also ask

How do I change my Gvim color scheme?

You can set your preferred color scheme in gvim for MS Windows by editing the file _vimrc in C:\Program Files\Vim or the location where you installed Vim. Save the file and start gvim you will see your color scheme.

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 .

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.


1 Answers

:help colorscheme

For example:

:colorscheme torte

Or, find a color scheme you like at vim.org.

like image 53
Sinan Ünür Avatar answered Sep 27 '22 22:09

Sinan Ünür