Vim Syntaxhighlighting for BlitzMax

BlitzMax Forums/BlitzMax Programming/Vim Syntaxhighlighting for BlitzMax

hamZta(Posted 2010) [#1]
Hey!

As vim is my favorite editor I wrote a simple syntax description for BlitzMax. It includes most of BlitzMax keywords, types and functions. With my color scheme, it looks as beautiful as this:


Download it right here: Download

Just extract and move the file to the place your vim looks for syntax files (e.g. /usr/share/vim/syntax/)

If you want vim to automatically detect .bmx files, add this to your vimrc (/etc/vimrc or $HOME/.vimrc):
au BufNewFile,BufRead *.bmx set filetype=bmax

Please note, that this is a very basic syntax description, it detects all forms of numbers (float and non-float, binary, hexadecimal), strings, keywords, functions. If you find a bug, feel free to drop me a mail at: dev (at) dreamfall (dot) at

That's it, have fun using vim!

hamZta


Muttley(Posted 2010) [#2]
Thanks a lot, I shall be giving this one a try. :)


Htbaa(Posted 2010) [#3]
For some reason I can't get this to work.

Isn't Vim 7.2 supported? It seems that that's the version that comes with Ubuntu 10.10.