Making a custom Vim Syntax file

I use Vim everyday. I'm not a master at it, but I can use it productively everyday.

Besides being a very productive and lightweight editor, one thing I like about Vim is its outstanding syntax highlighting capabilities: if you program in any language, you can be 99% sure there's a Vim syntax file to highlight it. If not, then nothing stops you from creating your own of course.

I created a Vim color scheme in the past, and it was easy enough.

Creating a vim syntax scheme, however, is a whole different game. It's not impossible and there's plenty of documentation for it, it's just a matter of understanding how it works. Anyhow, I managed to create a very simple (but working!) syntax file for my very own Glyph Macro Language:

The language itself has a very simple grammar, nevertheless I was quite pleased of the result (see the gallery of images below).

The syntax file is now versioned in my stash, but you can also get it from vim.org.

(download)

Tai Chi Festival 2010

Yesterday my wife and I went to Belgioioso Castle with our Tai Chi teacher, for the annual Tai Chi Festival. We didn't bring our gear and we didn't practice (although we could have), but we enjoyed watching skilled masters performing some interesting patterns.

Although I normally don't post about Tai Chi or my non-programming hobbies, I thought I'd share some of the amazing stuff we saw.

 

(download)

Read the rest of this post »

And so I was trying to sell some domains...

Last week I put some domains up for sale. Nothing too big, just a way to dispose of something I don't really need right now.
 
Well yesterday this guy contacts me...
 
 
ridding@elitenethosting.com to me
Hello,
How much do you ask for this domain for sale?
Our company buy and sell domains and developed sites.
If you have other domains for sale feel free to send your list.
Looking forward to do business with you.
Regards,
Brad Ridding
CEO
Elite Network Solutions LLC
========================================================
NOTICE - This communication may contain confidential and privileged
information that is for the sole use of the intended recipient. Any
viewing, copying or distribution of, or reliance on this message by
unintended recipients is strictly prohibited. If you have received this
message in error, please notify us immediately by replying to the message
and deleting it from your computer.
========================================================
 
 

Read the rest of this post »