View Single Post
  #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:	567
Size:	63.2 KB
ID:	7612   Click image for larger version

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

Name:	vim_syntax_4.jpg
Views:	576
Size:	72.4 KB
ID:	7615  
Attached Files
File Type: zip vim_dom3-r4.zip (5.1 KB, 182 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: