Re: vi weirdness (72 Views)
Reply
Frequent Advisor
allanm77
Posts: 88
Registered: ‎06-27-2011
Message 1 of 7 (135 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.

 

Please use plain text.
Frequent Advisor
allanm77
Posts: 88
Registered: ‎06-27-2011
Message 2 of 7 (107 Views)

Re: vi weirdness

Any help is appreciated.

 

Thanks.

Please use plain text.
Honored Contributor
Steven Schweda
Posts: 9,058
Registered: ‎02-23-2005
Message 3 of 7 (104 Views)

Re: vi weirdness

Please use plain text.
Frequent Advisor
allanm77
Posts: 88
Registered: ‎06-27-2011
Message 4 of 7 (99 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

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,742
Registered: ‎03-06-2006
Message 5 of 7 (86 Views)

Re: vi weirdness

>rows 50; columns 199

 

Is this reasonable for your window?

What is the value of $TERM?

Please use plain text.
Frequent Advisor
allanm77
Posts: 88
Registered: ‎06-27-2011
Message 6 of 7 (78 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.

Please use plain text.
Honored Contributor
Steven Schweda
Posts: 9,058
Registered: ‎02-23-2005
Message 7 of 7 (72 Views)

Re: vi weirdness

Please use plain text.
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