Editing with vi

Hello
I am running a fresh install and trying to edit text with vi, also edit...
however, the displayed text is completely scrambled no matter what I attempt to edit.
Any ideas as to why this would be happening?
 
Bad terminal perhaps? Try:
Code:
env TERM=vt100 /usr/bin/vi /etc/defaults/rc.conf
If that's scrambled, something else is wrong.
 
editing

rc.conf does not come up scrambled...
what is a bad terminal?
how do I make all the terminals good so I can just vi -
 
Please show echo $TERM in your shell. If it says 'dumb', then you're likely in single user mode.

The TERM environment variable is set in /etc/ttys for any standard virtual terminals. For pseudo-terminals (pty, like through ssh) it is taken from the environment of the remote machine.

See environ(7) and termcap(5).
 
Back
Top