1748154 Members
3687 Online
108758 Solutions
New Discussion юеВ

Re: vi weirdness

 
allanm77
Frequent Advisor

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.

 

6 REPLIES 6
allanm77
Frequent Advisor

Re: vi weirdness

Any help is appreciated.

 

Thanks.

Steven Schweda
Honored Contributor

Re: vi weirdness

 
allanm77
Frequent Advisor

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

Dennis Handly
Acclaimed Contributor

Re: vi weirdness

>rows 50; columns 199

 

Is this reasonable for your window?

What is the value of $TERM?

allanm77
Frequent Advisor

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.

Steven Schweda
Honored Contributor

Re: vi weirdness