From owner-freebsd-questions Wed Nov 3 9:47:40 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cr31617-a.lndn1.on.wave.home.com (cr31617-a.lndn1.on.wave.home.com [24.112.227.163]) by hub.freebsd.org (Postfix) with ESMTP id ED72F1553C for ; Wed, 3 Nov 1999 09:47:32 -0800 (PST) (envelope-from jbailie@cr31617-a.lndn1.on.wave.home.com) Received: (from jbailie@localhost) by cr31617-a.lndn1.on.wave.home.com (8.9.3/8.9.3) id MAA00579 for freebsd-questions@FreeBSD.ORG; Wed, 3 Nov 1999 12:56:11 -0500 (EST) (envelope-from jbailie) Date: Wed, 3 Nov 1999 12:56:11 -0500 From: James Bailie To: freebsd-questions@FreeBSD.ORG Subject: Re: vim, syntax highlighting Message-ID: <19991103125611.A546@cr31617-a.lndn1.on.wave.home.co> References: <381ECB55.B4AB47B9@student.liu.se> <19991102124818.K67193@sr.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Mailer: Mutt 1.0pre3i In-Reply-To: <19991102124818.K67193@sr.se> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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