Vi editor Line too Long Error

My file is 13 mb but it has big long lines.

i tried in vain vi -R filename

I tried in vain bash: vim: command not found

SunOS mymac 5.10 Generic_150400-26 sun4v sparc sun4v

Can you please suggest?

you need to look at the website opencsw.org

vim - Solaris package
There is a prerequisite package that handles installation, and self installs all of the others.

We have several GNU things from this site. The free sunware site is not free anymore.