POV-Ray : Newsgroups : povray.unix : VIM syntax highlighting and .inc files : Re: VIM syntax highlighting and .inc files Server Time
28 Jul 2024 12:33:06 EDT (-0400)
  Re: VIM syntax highlighting and .inc files  
From: Ron Parker
Date: 28 Nov 2001 15:43:55
Message: <slrna0aj4d.puv.ron.parker@fwi.com>
On Wed, 28 Nov 2001 15:21:57 -0500, Mark M. Wilson wrote:
> Does any one who uses vim know how to get it to use the same povray
> syntax color scheme for .inc files as for .pov files?  When editing my
> .pov files at a console (Debian Linux, BTW) I get my colors, but when
> editing my own custom .inc files, I just get the usual light grey text
> and black background.  Is there some config file I can edit to get vim
> to recognize that .inc files should be treated the same as .pov?

/usr/share/vim/syntax/syntax.vim should contain lines that look like this:

  " Povray
  au BufNewFile,BufRead *.pov,*.inc             so $VIM/syntax/pov.vim

or at least it does on my system.  But I don't use vim, so I don't know 
whether that works. 

--
#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.