Juan,
HVI now runs on my Z80 CP/M 2.2 machine and no longer gets the out of memory error. However, several primary commands don't seem to work properly. Both I and i immediately enter an endless loop of inserting spaces rapidly, and yet, I can type in new characters while it's busy inserting spaces. Paging forward and backward takes about 5 seconds before the page starts to redraw. I noticed that cw, dw, etc., don't work - i assume those modifiers aren't implemented. If instead I individually delete characters, it takes 2-3 seconds per character deleted (more time the closer the cursor is to the top of the screen). Looks like running with reasonable response time on a real 2MHz or 4Mhz machine may require a more optimized solution coded in assembly language.
Have you every tried WordMaster (the predecessor to WordStar)? John did an excellent job getting reasonable response time in a full screen editor on a 2MHz 8080 or Z80 machine. I'd like to create a version of vi that has performance similar to WordMaster.
Mike D