Summary: Q: vi environment setting

From: Yen-Wen Chen (
Date: Tue Sep 13 1994 - 00:29:39 CDT

Hi, Sun Managers:

Original question:

> The first line of vi editor view is not line 1, and can't scroll to
> line 1. But when you modify this file, the content is diffent from
> it show. i.e. The view content is different from its real content.
> I think this is vi environment setting problem. But "term type" is
> right.

I received many answers, Thanks all people who give me any message/suggestion.
Summary their answers as follows:

    (a) most people suggest this one:
        two solutions:
        (1) type "eval `resize`" before you start your vi.
        (2) use "stty rows n cols m" to set up your window to the right size
        (3) Maybe it's problem with TERMCAP variable, try
            unsetenv TERMCAP in your ~/.login

    (b) Comment out the line "setenv EXINIT ....", and and log in again.

    (c) set the environment variable TERM in the remote shell to the same one
        as in the local window.

        Bryan Curnutt, curnutt@Stoner.COM
        Andrej Misik,
        Randy Hopper,
        Chris A. Wozniak,
        Denis COURTIER Athesa,
        Richard Davis,

If I loss any person, I am sorry for that.

Yen-Wen Chen | internet :
ITRI/CCL | Tel : 886-35-917562
System Engineer | Fax : 886-35-820081
Address : N200, Bldg. 14, 195 Sec 4, Chung Hsing Rd., Chutung,
          Hsinchu, Taiwan 310, R.O.C.

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:09:09 CDT