default vimdiff color schemes are bad!

7,798 views
Skip to first unread message

Ryan

unread,
Aug 6, 2008, 2:28:34 PM8/6/08
to vim_use
I love vim. But vimdiff is useless to me right now because the default
color schemes make some text unreadable (bg and fg colors are to
similar). Has anyone devised a color scheme file that makes vimdiff
pretty or at least legible? I'd rather not have to burn an afternoon
making my own, but I will, because vim rocks!

Ryan

Teemu Likonen

unread,
Aug 6, 2008, 3:26:04 PM8/6/08
to vim...@googlegroups.com

This is what I use on black background:

highlight DiffAdd cterm=none ctermfg=bg ctermbg=Green gui=none guifg=bg guibg=Green
highlight DiffDelete cterm=none ctermfg=bg ctermbg=Red gui=none guifg=bg guibg=Red
highlight DiffChange cterm=none ctermfg=bg ctermbg=Yellow gui=none guifg=bg guibg=Yellow
highlight DiffText cterm=none ctermfg=bg ctermbg=Magenta gui=none guifg=bg guibg=Magenta

Tony Mechelynck

unread,
Aug 6, 2008, 7:16:03 PM8/6/08
to vim...@googlegroups.com
Rather than rely on the background being black, you might want to
explicitly use *fg=black.

Best regards,
Tony.
--
Contrary to popular belief, Unix is user friendly.
It just happens to be selective about who it makes friends with.
-- Dave Parnas

Tony Mechelynck

unread,
Aug 6, 2008, 7:29:25 PM8/6/08
to vim...@googlegroups.com

Writing a colorscheme is not difficult, especially if you don't deviate
much from the default: every default color you use means the
corresponding highlight group can be omitted.

I'm attaching my "almost-default" colorscheme: it's probably not exactly
what you need but it can serve as a source of inspiration. Drop it into
~/.vim/colors/ (or, on Windows, ~/vimfiles/colors/) then modify it as
you see fit.

Best regards,
Tony.
--
United Nations, New York, December 25. The peace and joy of the
Christmas season was marred by a proclamation of a general strike of
all the military forces of the world. Panic reigns in the hearts of
all the patriots of every persuasion.

Meanwhile, fears of universal disaster sank to an all-time low over the
world.
-- Isaac Asimov

almost-default.vim
Reply all
Reply to author
Forward
0 new messages