As you probably know, I'm becoming a Microsoft Command Shell (aka Monad, aka MSH) junkie. I'm also a vim guy, and I was sorely missing syntax highlighting for my MSH files in my general purpose text editor.
So I wrote one. Here is it.. in all its glory. This is my first ever syntax file for Vim, so I'm sure it could be improved. Send me any improvements you make, and I'll update it.
To use this file, first save it to the same directory as your other syntax files (C:\Program Files\Vim\vim63\syntax on my system). Then edit your _vimrc file (in your profile directory) and add the following lines to the bottom:
au BufRead,BufNewFile *.msh set filetype=monad
au! Syntax monad source $VIMRUNTIME\syntax\monad.vim
The next time you open a .MSH file, you should see colors. Woo hoo! (I'm sure Hanselman has already done one for Notepad2, but I don't use that.
)
UPDATE: Apparently the link was broken. I turned it into a ZIP and now it works.
UPDATE: This post is obsolete. Please see this post for an updated version and some better instructions.