.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios, Maps and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=146)
-   -   Syntax Highlighting for Vim (http://forum.shrapnelgames.com/showthread.php?t=42064)

analytic_kernel January 24th, 2009 09:03 PM

Syntax Highlighting for Vim
 
4 Attachment(s)
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.

http://forum.shrapnelgames.com/attac...2&d=1232844641
Looking at CB Nations 1.41....

http://forum.shrapnelgames.com/attac...5&d=1232844734
Looking at CB Spells 1.41 with code folding on....

If there are any other Vim-using Dom 3 modders out there, enjoy!

Fate January 24th, 2009 10:18 PM

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.

analytic_kernel January 24th, 2009 10:36 PM

Re: Syntax Highlighting for Vim
 
Quote:

Originally Posted by Fate (Post 669414)
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.

Ballbarian January 25th, 2009 01:40 AM

Re: Syntax Highlighting for Vim
 
Thanks for sharing this! :)

Thilock_Dominus January 25th, 2009 02:44 AM

Re: Syntax Highlighting for Vim
 
Very nice, indeed.

Dedas January 25th, 2009 04:58 AM

Re: Syntax Highlighting for Vim
 
Thank you so much!


All times are GMT -4. The time now is 12:18 AM.

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