[98687] in RedHat Linux List
Re: vim
daemon@ATHENA.MIT.EDU (cs96sjd@brunel.ac.uk)
Tue Nov 10 05:06:16 1998
From: cs96sjd@brunel.ac.uk
In-Reply-To: <Pine.LNX.3.96.981110001708.405C-100000@kachinahost> from Shafer Stockton at "Nov 10, 98 00:17:55 am"
To: redhat-list@redhat.com
Date: Tue, 10 Nov 1998 10:05:28 +0000 (GMT)
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Shafer Stockton said something like :
> I can't get the color syntax highlighting to turn on in vim that comes
> with RedHat 5.1
see /usr/share/vim/doc/syntax
at about line 57ish, there's three lines :
> if &t_Co > 1
> syntax on
> endif
insert these lines (without the '>' 's) into your $HOME/.vimrc. Then, invoke vim as :
vim somefile.extension
Depending on the extension of the file, vim will use the syntax highlighting for that language. Note that the file doesn't have to exist for highlighting to work.
( I was trying to find this very piece of information out last night !! )
Simon D
--
We read to say that we have read.
________________________________________________________________________________
Simon Delicata __ _
cs96sjd@brunel.ac.uk / / (_)__ __ ____ __ Brunel University Student
/ /__/ / _ \/ // /\ \/ /
/____/_/_//_/\_,_/ /_/\_\ .. The choice of a GNU Generation
________________________________________________________________________________
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.