POV-Ray : Newsgroups : povray.unix : VIM syntax highlighting and .inc files : Re: VIM syntax highlighting and .inc files Server Time
28 Jul 2024 18:27:05 EDT (-0400)
  Re: VIM syntax highlighting and .inc files  
From: Mark M  Wilson
Date: 28 Nov 2001 16:00:50
Message: <3C0550BF.C9B058CD@ncsl.dcr.state.nc.us>
OK, then my next (stupid) question is (you can tell I haven't read that
section of the manual lately):
when making the include statements, if the .pov file (which used to be
the .inc file) is not in the same dir. as all the other .inc files which
come with POVRay, do I explicitly state the path like so:
#include ~/ceiling.pov  

or had I better move the ceiling.pov file to /usr/share/povray where all
the other stuff is?

--Mark

Ron Parker wrote:
> 
> On Wed, 28 Nov 2001 15:54:30 -0500, Mark M. Wilson wrote:
> > Here's a possibly dumb idea -- could I create a symlink from the .inc to
> > the .pov file and 'fool' vim into treating it accordingly?  I.e., ln -s
> > ceiling.inc ceiling.pov   ?
> > --Mark
> 
> Sure, but why not just call it ceiling.pov then?  It's not as though the
> #include statement will care.
> 
> --
> #macro R(L P)sphere{L __}cylinder{L P __}#end#macro P(_1)union{R(z+_ z)R(-z _-z)
> R(_-z*3_+z)torus{1__ clipped_by{plane{_ 0}}}translate z+_1}#end#macro S(_)9-(_1-
> _)*(_1-_)#end#macro Z(_1 _ __)union{P(_)P(-_)R(y-z-1_)translate.1*_1-y*8pigment{
> rgb<S(7)S(5)S(3)>}}#if(_1)Z(_1-__,_,__)#end#end Z(10x*-2,.2)camera{rotate x*90}


Post a reply to this message

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