Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Nov 1999 12:56:11 -0500
From:      James Bailie <jazzturk@home.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: vim, syntax highlighting
Message-ID:  <19991103125611.A546@cr31617-a.lndn1.on.wave.home.co>
In-Reply-To: <19991102124818.K67193@sr.se>
References:  <381ECB55.B4AB47B9@student.liu.se> <19991102124818.K67193@sr.se>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 02, 1999 at 12:48:18PM +0100, Gunnar Flygt wrote:
> On Tue, Nov 02, 1999 at 12:30:29PM +0100, Johan Pettersson wrote:
> > Hello!
> >=20
> > When I open a txt.c file in console mode then I
> > have nice syntax highlighting. But when I open
> > same file under X , no syntax highlighting!
> > Doesn't .vimrc work under X or ?
>=20
> You have to have TERM=3Dxterm-color to make it work!

I had to add this to my ~/.vimrc:

:if &term =3D=3D "xterm"
:  set t_kb=3D=08
:  set t_kD=3D=04
:  fixdel
:endif

" turn on color

:set t_Co=3D8
:set t_Sf=3D=1B[3%dm
:set t_Sb=3D=1B[4%dm
:syntax on

--=20
James Bailie =20

http://members.home.net/jazzturk =20


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991103125611.A546>