Urban Terror Forums: Vim syntax highlighting for shaders - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Vim syntax highlighting for shaders Rate Topic: -----

Anyone?

#1 User is offline   rfx Icon

  • Account: rfx
  • Country:
  • Joined: 01-March 10
  • Posts: 576

Posted 23 December 2009 - 03:12 PM

Hi,

does anyone know of a syntax highlighting file for Vim for shader files?

When I get too bored I may just cook up one of my own, just wanted to know if there's one out there. Searching the 'net didn't turn up anything for me.

thx

#2 User is offline   Rambetter Icon

  •   community dev   
  • Account: rambetter
  • Joined: 28-February 10
  • Posts: 1,140

Posted 23 December 2009 - 10:03 PM

View Postrfx, on 23 December 2009 - 03:12 PM, said:

Hi,

does anyone know of a syntax highlighting file for Vim for shader files?

When I get too bored I may just cook up one of my own, just wanted to know if there's one out there. Searching the 'net didn't turn up anything for me.

thx


Haha n1.

#3 User is offline   rfx Icon

  • Account: rfx
  • Country:
  • Joined: 01-March 10
  • Posts: 576

Posted 24 December 2009 - 12:50 AM

Boredness came over me so ... here's the quick'n'dirty highlighting:

http://my-serve.rs/tmp/shader.vim

Needs to be placed inside VIMs syntax/ directory (e.g. ~/.vim/syntax/ ) and requires a file type detection, e.g. put
au BufRead,BufNewFile *.shader setfiletype shader
into ~/.vim/filetype.vim .

Without: http://my-serve.rs/t...der-without.png

With: http://my-serve.rs/tmp/shader-with.png

Not like a Christmas tree but at least better :P

#4 User is offline   mitsubishi Icon

  • Account: mitsubishi
  • Country:
  • Joined: 28-February 10
  • Posts: 13,481

Posted 24 December 2009 - 12:59 AM

n1.

#5 User is offline   amnesic (old) Icon

  • Joined: 07-October 09
  • Posts: 37

Posted 26 January 2010 - 11:40 PM

Oh
Thanks rfx!

bullet_loaderAdvertisement

#6 User is offline   Rambetter Icon

  •   community dev   
  • Account: rambetter
  • Joined: 28-February 10
  • Posts: 1,140

Posted 27 January 2010 - 12:50 AM

rfx, I need an emacs syntax highligher for shaders. :-)

#7 User is offline   .[d43m0n]. (old) Icon

  • Joined: 29-April 08
  • Posts: 65

Posted 27 January 2010 - 05:58 AM

emacs is waaaaay better, do i need to start an age old flamewar? :laugh:
All work and no play makes Mike a dull boy

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Advertisement


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942