I came across to read a news from http://www.bit-tech.net/news/2008/07/09/vi-editor-in-javascript/1. It terrifies when introducing to my friends; but I really love it after playing with it, though it does not support some complicated usage. It supports some basic editor operation. : ) The website is at http://gpl.internetconnection.net/vi/ and it is GPL.