On Tue, Nov 07, 2000 at 09:19:16AM +0200, Johann Spies wrote: > I am an emacs user trying out vim. On the console the font > highlighting looks good. > > But on X11 I get a white background an then it looks ugly and I can > not read most of the syntax highlighting. > > I have the following in my .vimrc > """"""""""""""""""" Colour support and syntax highlighting """"""""""""""""""" > if $COLORTERM == "rxvt" > set term=rxvt > endif > if &term == "rxvt" > set t_Co=8 > set ttyfast > endif > > " Colours suitable for a dark background, which is what my Linux console, > " xterms and rxvts are configured to have. > set background=dark > syntax on
Hmm, I have this in my .vimrc ... set background=dark ... " We know xterm-debian is a color terminal if &term =~ "xterm-debian" || &term =~ "xterm-xfree86" set t_Co=16 set t_Sf=ESC[3%dm set t_Sb=ESC[4%dm endif if has("syntax") syntax on endif ... So, I'd guess the '==' needs to be '=~'. -- #! /bin/sh # ppp-address: What's my Internet Address for ppp0 ? /sbin/ifconfig ppp0 2> /dev/null | grep 'inet addr:' | sed \ 's=.*inet addr\:\([0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\).*=\1='