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.