Make gvim 7.2 background black
I am sick and tired of the white background when I edit C开发者_StackOverflow/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
:help colorscheme
For example:
:colorscheme torte
Or, find a color scheme you like at vim.org.
Colors are controlled with the :highlight
command Vim documentation: syntax , which allows you to specify colors for gvim (guifg
and guibg
) differently from colors for terminal vim (ctermfg
and ctermbg
).
All you have to do is make sure that the colors you assign to guifg
and guibg
are the same as you assign to ctermfg
and ctermbg
. Here's a script that might get you going: Xterm256 color names for console Vim
Depending on your colorscheme, the following command might work (it does depend on the colorscheme).
:set background=dark
精彩评论