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

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







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

Reply
 
Thread Tools Display Modes
  #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:	681
Size:	63.2 KB
ID:	7612   Click image for larger version

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

Name:	vim_syntax_4.jpg
Views:	687
Size:	72.4 KB
ID:	7615  
Attached Files
File Type: zip vim_dom3-r4.zip (5.1 KB, 258 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:
  #2  
Old January 24th, 2009, 10:18 PM

Fate Fate is offline
Sergeant
 
Join Date: Aug 2005
Posts: 286
Thanks: 8
Thanked 9 Times in 7 Posts
Fate is on a distinguished road
Default Re: Syntax Highlighting for Vim

Deeply appreciated. I noticed the nice highlighting for Emacs and was sad that there was no equivalent for Vim -until now! Thank you very much, I will probably use it right now.
Reply With Quote
  #3  
Old January 24th, 2009, 10:36 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
Default Re: Syntax Highlighting for Vim

Quote:
Originally Posted by Fate View Post
Deeply appreciated. I noticed the nice highlighting for Emacs and was sad that there was no equivalent for Vim -until now! Thank you very much, I will probably use it right now.
You're welcome! If you have any suggestions for improvements (different coloring, etc...), please let me know.

Thanks.
Reply With Quote
  #4  
Old January 25th, 2009, 01:40 AM
Ballbarian's Avatar

Ballbarian Ballbarian is offline
Colonel
 
Join Date: May 2005
Location: Kansas, USA
Posts: 1,538
Thanks: 289
Thanked 194 Times in 94 Posts
Ballbarian will become famous soon enough
Default Re: Syntax Highlighting for Vim

Thanks for sharing this!
__________________
RanDom v2 - Map gen & Semirandomizer.
Province Editor - Custom province creation made easier.
God Editor - Custom pretender creation made easier.
Map Forge - Map editor
Reply With Quote
  #5  
Old January 25th, 2009, 02:44 AM
Thilock_Dominus's Avatar

Thilock_Dominus Thilock_Dominus is offline
Second Lieutenant
 
Join Date: Jan 2004
Location: Denmark
Posts: 471
Thanks: 23
Thanked 28 Times in 16 Posts
Thilock_Dominus is on a distinguished road
Default Re: Syntax Highlighting for Vim

Very nice, indeed.
__________________
| Ubuntu Linux 12.04 64-bit |

Nosophoros: The Vampire Lords - v1.02
Conquest of Elysium 3 GUI mods
Reply With Quote
  #6  
Old January 25th, 2009, 04:58 AM
Dedas's Avatar

Dedas Dedas is offline
Lieutenant Colonel
 
Join Date: Nov 2005
Location: Lund, Sweden
Posts: 1,377
Thanks: 72
Thanked 25 Times in 20 Posts
Dedas is on a distinguished road
Default Re: Syntax Highlighting for Vim

Thank you so much!
Reply With Quote
Reply

Bookmarks


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:42 AM.


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