When you are working in an UNIX shell using Putty tool, you may get this error.

Problem: 

When you are trying to open vi editor, you may get error message “Terminal too wide

Solution:

Enter the below command in the shell and try to open vi editor again. It will work.

# stty columns 120