PDA

View Full Version : Syntax Highlighting for Vim


analytic_kernel
January 24th, 2009, 09:03 PM
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/attachment.php?attachmentid=7612&d=1232844641
Looking at CB Nations 1.41....

http://forum.shrapnelgames.com/attachment.php?attachmentid=7615&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
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
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
Thanks for sharing this! :)

Thilock_Dominus
January 25th, 2009, 02:44 AM
Very nice, indeed.

Dedas
January 25th, 2009, 04:58 AM
Thank you so much!