Re: FreeBSD 5.1: VI munges config files?
From: Gregory Toomey (nospam_at_bigpond.com)
Date: 02/18/04
- Next message: dave: "Re: grub, FreeBSD 5.x, on second disk"
- Previous message: Steve: "Re: grub, FreeBSD 5.x, on second disk"
- In reply to: xippy dapinhead: "FreeBSD 5.1: VI munges config files?"
- Next in thread: Doug Carter: "Re: FreeBSD 5.1: VI munges config files?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 18 Feb 2004 01:43:02 GMT
xippy dapinhead wrote:
> Hi All: I'm very new to FreeBSD and only have experience with Linux
> 7,8,9.
>
> I've been trying to admin a 5.1 installation using SSH and vi to edit
> config files. When I log in as root and start to edit in vi, strange
> things happen in the terminal window, like the cursor jumping to the
> far right and not inserting text properly.
>
> I usually panic at that point <g> and try to exit without saving
> changes, but when I've opened the same file in gedit, it will have
> become corrupted...I'm hoping that it's because I inadvertently saved
> the file while vi was wigging out, and not some larger file corruption
> issue.
>
> Is this a known issue or, if not, what can I do to debug the problem?
> I will eventually want to remotely access the server with SSH and edit
> files with vi reliably.
>
> TIA, Andrew
Possibly the TTY type is set wrongly. In bash try
export TERM=vt100
or maybe even
export TERM=xterm
and then run vi
gtoomey
- Next message: dave: "Re: grub, FreeBSD 5.x, on second disk"
- Previous message: Steve: "Re: grub, FreeBSD 5.x, on second disk"
- In reply to: xippy dapinhead: "FreeBSD 5.1: VI munges config files?"
- Next in thread: Doug Carter: "Re: FreeBSD 5.1: VI munges config files?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|