Re: [vox-tech] syntax highlighting in vim
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vox-tech] syntax highlighting in vim
On Fri, Aug 30, 2002 at 02:01:15PM -0700, Andy Wergedal wrote:
> Hello all,
>
> I am trying to create a simple syntax file to colorize my journal entries. I would like the lines to be colorized by the first letter.
>
> Here is the basic scheme I would like to use. (or something like it.)
>
> black background
> * red
> - blue
> -- green
>
> I have read the manual and found the syntax files but I just want something simple, not the volumneous view of everything.
When in doubt, find something that almost works, then tinker.
In that vein, I suggest you modify /usr/share/vim/vim61/syntax/conf.vim,
which is about the simplest syntax file imaginable. (Change path as
approproate if you have other vim than vim 6.1.) The matching is done by
regexes, the color scheme by a semantic system (i.e., you define the syntax
in the synax file as "Comment" or similar, but "Comment" is mapped to a
particular color elsewhere.)
--
Henry House
The attached file is a digital signature. See <http://romana.hajhouse.org/pgp>
for information. My OpenPGP key: <http://romana.hajhouse.org/hajhouse.asc>.
Attachment:
pgp00018.pgp
Description: PGP signature
|