From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510
Description of problem:
It seems that in 7.3 doing vi /etc/named.conf (or any other file) starts vim in
color mode. This is fine if you have a white background, but with a black
background you cannot see most of the text.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. vi a file in 7.3
2. make sure you have no .vimrc
3. make sure the background of the xterm is a dark blue-black color.
Actual Results: dark unradable colors
Expected Results: forground color on background color
syntax highlightening (sp) is good, but only if you can read th4e text. The
default behavior should be off like in RH 5.0 to 7.2 versions.
syntax highlighting will stay as the default as this is easier for Linux newbies.
You can turn this off by adding 'unalias vi' to your ~/.bashrc. Or you can add the following
to your .vimrc and switch between the syntax modes with F7:
:map <F7> :if exists("syntax_on") <Bar>
\ syntax off <Bar>
\ else <Bar>
\ syntax enable <Bar>
\ endif <CR>
Additional way to fix this "problem".
in ~/.vimrc (create if needed) put:
This will select a color palette that is more suitable for an xterm with a
'dark' background. One can also set this while running vim to temporarily change
the color palette.
Note that Redhat 7.x seems to have changed the default value for background from
'dark' to 'light' in vim.