I am using iTerm2 to ssh to various servers. When i use VI to edit a file i get an error that reads 'Terminal Too Wide.' To fix this I use the following command 'stty columns 120.' Is there a setting that I can set in iTerm that will prevent me from having to enter this command?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
Don't make the terminal window too wide (e.g. fullscreen). Both Terminal and iTerm make the terminal as wide as the window can handle by default to not waste screen space. Unfortunately, In the ex-vi source code, Release 050325, check out Some Linux distributions apparently patch |
|||
|
|
viminstead. – Daniel Beck♦ Jan 25 '12 at 14:28sttythe the SSH system's shell profile so it's executed automatically. But vi simply cannot handle more columns, unless you patch and compile it. – Daniel Beck♦ Jan 25 '12 at 20:10