Just stumbled across this link: http://gpl.internetconnection.net/vi/
for a basic implementation of Vi, authored in JavaScript. Sick, sick, sick. So just in case you're on a foreign computer that doesn't have vi/vim installed, and you need a fix, you can get it via the web. :)
-tim