POV-Ray : Newsgroups : povray.unix : Why I still dualboot : Re: Why I still dualboot Server Time
28 Jul 2024 20:31:08 EDT (-0400)
  Re: Why I still dualboot  
From: Adrien Beau
Date: 17 Jul 2001 03:52:57
Message: <3B53EED3.14804691@sycomore.fr>
"Mark M. Wilson" wrote:
> 
> One day I just discovered that gvim had Povray syntax highlighting
> (although I've noticed a peculiar phenom. which no one has really solved
> -- the colors of the highlighting are differenet depending on whether
> gvim is started from an xterm or from the GUI menu.)

What kind of difference? Completely different, or some
colors changing a bit?

It might be due to the 'background' option. Type

	:set background?

and see if it has the same values from the GUI menu and
from the xterm.

> What IS pov.vim?

It is the file responsible for POV syntax highlighting. It lists
the keywords and lots of other rules to highlight numbers, strings,
directives and such. It is written in "Vim script", that explains
the .vim extension. See the "syntax" subdirectory in
/usr/share/vim/vim5.x (or wherever Libranet put it).

Most syntax files are made by users. The "old" pov.vim (vim 5.7
and earlier) had a basic, quickly-made POV syntax file. The "new"
pov.vim (vim 5.8 and later) seems to be better. I had began my
own syntax file but have stopped it when the "new" one was
released. I might rework on it though, because I think mine is
a bit better... :-)

And as I said, you're not obliged to upgrade your whole gvim
package. The Vim site has somewhere a list of all syntax files,
and you can download an up-to-date pov.vim there (well, I hope
so).

-- 
Adrien Beau - adr### [at] freefr - http://adrien.beau.free.fr
 Mes propos n'engagent que moi et en aucun cas mes employeurs


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.