The source code of the original Vi editor is available from , It even has wide character support. Any chance of you trying a port to Windows?