.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

The Star & the Crescent- Save $9.00
winSPWW2- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening > Scenarios, Maps and Mods

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old January 24th, 2009, 09:03 PM

analytic_kernel analytic_kernel is offline
Corporal
 
Join Date: Jan 2009
Posts: 130
Thanks: 153
Thanked 21 Times in 12 Posts
analytic_kernel is on a distinguished road
Computer Syntax Highlighting for Vim

Greetings,

After searching around the forum, I was not able to find any syntax highlighting for the Vim editor. I did find support for Emacs, and so I figured it was high time to bring balance to the Force.

Attached is a zip archive archive of the files to support Dom 3 mod and map syntax highlighting. The files have only been tested with Vim 7.2 on Linux, but will probably work with other versions of Vim. Simply unzip the archive into the .vim directory in your home directory (~/.vim); create the .vim directory first, if you need to. (Windows users, you will need to unpack to whatever the equivalent path is on your OS. But, you probably already figured that out. )

Files with .dm extensions will be edited in dom3_mod mode, and files with .map extensions will be edited in dom3_map mode. I tried to ensure that every mod command listed in the PDF docs that came with v3.21 was included. Please let me know if I missed any.

Code folding is supported for comments in both modes, and for the #select and #new constructs in dom3_mod.


Looking at CB Nations 1.41....


Looking at CB Spells 1.41 with code folding on....

If there are any other Vim-using Dom 3 modders out there, enjoy!
Attached Thumbnails
Click image for larger version

Name:	vim_syntax_1.jpg
Views:	682
Size:	63.2 KB
ID:	7612   Click image for larger version

Name:	vim_syntax_2.jpg
Views:	278
Size:	67.9 KB
ID:	7613   Click image for larger version

Name:	vim_syntax_4.jpg
Views:	689
Size:	72.4 KB
ID:	7615  
Attached Files
File Type: zip vim_dom3-r4.zip (5.1 KB, 259 views)

Last edited by analytic_kernel; January 25th, 2009 at 12:03 AM.. Reason: Revise attachment. Bugfix for magic site highlighting.
Reply With Quote
The Following 5 Users Say Thank You to analytic_kernel For This Useful Post:
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 06:34 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.