Quickie: Using Vim for Actionscript

Okay, we all know vim is the best IDE out there. But what is a fella to do when he wants to use the best IDE with the best closed-source vector-based browser plugin scripting language? Why, hack at his vim install! :) First, download the actionscript.vim file from this place. The actionscript.vim file is a syntax file, so it should go in the appropriate folder as you see fit. However, note that in OS X the .vim folder seems to have no impact, so you have to put it in the /usr/share/vim/vim72/syntax folder. (Use sudo, and you may need to use a different vim folder if it has a newer version.) Next, we have to hack at the filetype.vim file in the /usr/share/vim* folder in order to disable the default treatment of *.as files. Change the lines that say: [sourcecode language="sh"] " Atlas au BufNewFile,BufRead *.atl,*as setf atlas [/sourcecode] ...into the following series of lines: [sourcecode language="sh"] " Atlas au BufNewFile,BufRead *.atl setf atlas " ActionScript au BufNewFile,BufRead *.as setf actionscript [/sourcecode] Voila! Opening .as files in vim should work now.

Compiling CouchDB

So, in the last post I gave an introduction to the concepts behind CouchDB and other document store systems. For this post, I had intended to overview compiling on both Mac OS X and Ubuntu 9.10 Beta. However, on the Mac front, it turned out there was already project with a nicely cooked binary that would be significantly easier to install, and, let's face it, just more Steve Jobs than compiling from source. If you are running Mac OS X Leopard (10.5), you can download the CouchDBX binary here.

Read the rest of this post »