This post originated from an RSS feed registered with .NET Buzz
by Peter G Provost.
Original Post: Vim Syntax File For Monad (MSH)
Feed Title: Peter Provost's Geek Noise
Feed URL: /error.aspx?aspxerrorpath=/Rss.aspx
Feed Description: Technology news, development articles, Microsoft .NET, and other stuff...
As you probably know, I'm becoming a Microsoft Command Shell (aka Monad, aka MSH). 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. )