The 2BSD tape on TUHS  (web interface: https://www.tuhs.org/cgi-bin/utree.pl?file=2BSD) has the original ex source -- remember vi is the visual command for ex.
It includes binaries that will run on v6 in the tape - you need to build it for v7.  I also don't know if the VT05 is in the termcap file.    Plus, a Tek 4014 in the termcap is likely to be not very useful for vi mode as it's a DVST (storage terminal), but I think there may be a Tek 4025 definition in there (as I wrote it back in the day and sent it Mary Ann who was the collector of them).

That said ex is big and it needs a separate I/D (11/45 class) system, so a while ago, I got Webb Miller's s (mini vi) to compile a while back:  https://github.com/udo-munk/s which has much more 
modest requirements (it is known to have been ported to 8-bit micros under CP/M) but it assumes ANSI sequences so there is no termcap.

On Sun, Feb 26, 2023 at 4:35 PM Will Senn <will.senn@gmail.com> wrote:
Oh and even though I’d love it in a trek window, I meant Tek :). Either way, I hope somebody posts a solution.

Sent from my iPhone

> On Feb 26, 2023, at 3:33 PM, Will Senn <will.senn@gmail.com> wrote:
>
> Probably, but I have found that to be a black hole of time and effort. Perhaps you’ll figure it out and post! I tried several times to get vi working and was only ever able to get it partially working... at best. I didn’t try it for a trek window though.
>
> Sent from my iPhone
>
>> On Feb 26, 2023, at 3:00 PM, KenUnix <ken.unix.guy@gmail.com> wrote:
>>
>> Was work ever done for v7 Unix to support 'vi' when using a
>> tek or vt05 terminal?
>>
>> And, is it available?
>>
>> Thanks,
>> Ken
>>
>> --
>> WWL 📚
>>
>>