Re: vi weirdness (200 Views)
Reply
Frequent Advisor
Posts: 88
Registered: ‎06-27-2011
Message 1 of 7 (263 Views)

vi weirdness

Hi!

 

On one my linux machines (shell - tcsh,  vim is not installed).

 

When I do  a :set nu it shows , from top it shows line 13 instead of line 1 and when I try to go to line 1 ( :1)  it comes to line 13 and while I do horizontal scrolling the newer text (from line 1 starts showing)..

 

Is it a stty issue, how do I fix this?

 

Thanks,

Allan.

 

Frequent Advisor
Posts: 88
Registered: ‎06-27-2011
Message 2 of 7 (235 Views)

Re: vi weirdness

Any help is appreciated.

 

Thanks.

Honored Contributor
Posts: 9,109
Registered: ‎02-23-2005
Message 3 of 7 (232 Views)

Re: vi weirdness

Frequent Advisor
Posts: 88
Registered: ‎06-27-2011
Message 4 of 7 (227 Views)

Re: vi weirdness

uname -a

2.6.18-238.el5xen #1 SMP Tue Jan 4 16:15:36 EST 2011 x86_64 x86_64 x86_64 GNU/Linux

 

yes, vim is not installed, its a bare bone vi.

 

stty -a

speed 38400 baud; rows 50; columns 199; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O;
min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts -cdtrdsr
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc ixany imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke

Acclaimed Contributor
Posts: 25,441
Registered: ‎03-06-2006
Message 5 of 7 (214 Views)

Re: vi weirdness

>rows 50; columns 199

 

Is this reasonable for your window?

What is the value of $TERM?

Frequent Advisor
Posts: 88
Registered: ‎06-27-2011
Message 6 of 7 (206 Views)

Re: vi weirdness

the size is ok with me.

 

echo $TERM
xterm

 

The problem happens when I use the iTERM to split the window size and there is no resize command on the box.

 

Thanks,

Allan.

Honored Contributor
Posts: 9,109
Registered: ‎02-23-2005
Message 7 of 7 (200 Views)

Re: vi weirdness

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.