So I ssh
into this old box we have at work, and it seems no one ever tried to use Vi on it before. When I try to open a file in vi all I get is one line of the file at a time, and it kind of screws up (visually) the terminal.
I am ssh
ing in from a Mac, if that makes a different (however other servers I ssh
into for work are fine).
When I run uname -a
I get: Linux dev 2.6.32.27-grsec #5 SMP Thu Dec 30 01:24:01 PST 2010 i686 unknown unknown GNU/Linux
. I am using bash
but if something else will work I am all ears.
This has to have happend to someone else, what setting am I missing that is causing this issue?
Thanks!
UPDATE: After research from comments, I found that this is only an issue with vi, not vim. So that begs the question, is this just an incompatibility with vi (not vim) and current ssh/terminal/shells, or is something else going on?
SOLVED: This was a carriage return -> new line issue that the old vi didn't handle properly. Running stty
with an argument to convert carriage returns to new lines allowed vi to work properly. Hopefully that helps someone that can't upgrade to vim.