Just stumbled across this link: http://gpl.internetconnection.net/vi/ for a basic implementation of Vi, authored in JavaScript.
With no desire to rekindle the debate, I just thought they might make a good match. In fact I could also use it for my wiki sites... if available. Just a quick thought.
Regards, Ben K. Developer http://benix.tamu.edu