When trying to open file Message:-Terminal too wide?

Hi,

I am trying to open small size file only in vi editor on solaris or Linux machine
but it giving message "Terminal too wide" and then I have to come out.

As shown below:-

-rwxr-x---   1 rkycadm  rkycprd     2445 Sep 12 04:06 
$ vi file.txt
Terminal too wide
:q!

---------- Post updated at 08:10 PM ---------- Previous update was at 07:29 PM ----------

I tried running below as well but getting below

/usr/openwin/bin/resize
resize:  can't open terminal /dev/tty

Try:

stty cols 80
vi file.txt

Cool it worked