When you are working in an UNIX shell using Putty tool, you may get this error.
When you are trying to open vi editor, you may get error message “Terminal too wide”
Enter the below command in the shell and try to open vi editor again. It will work.
# stty columns 120