vi page setup


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting vi page setup
# 1  
Old 11-17-2010
vi page setup

Hi All,

I am facing some strange problem. can anyone help to resolve this.

When i open any programs, scripts or any files in VI editor, only first 8 lines are displaying in the bottom of the screen. If i press control + f to go to next page, again second 8 lines are displaying.

I have to use down arrow key to display 24 lines in my screen. Again if i go to any line number, For Example :se 2014
again 8 lines are displaying in my screen from line number 2014.


terminal details :

TERM=vt100
TERM_DEFAULT=lft
TMOUT=1800

Any specific setup has to be changed ?

My OS is : AIX
# 2  
Old 11-17-2010
Do you have the file .exrc in your home directory? Thay has controls over what vi does and how it behaves. There is also the following snippet from the man page for vi:-
Quote:
window (wi=) Sets the number of lines displayed in one window of text. The
default depends on the baud rate at which you are operating: 600 baud or less, 8
lines; 1200 baud, 16 lines; higher speeds, full screen minus 1 line.
It is also possible that you have a short terminal defined somehow, perhaps.
Another snippet is the setting for z:-
Quote:
zNumber Makes the window the specified number of lines long.
.... again probably in ~/.exrc


I'm not sure if this helps, but maybe......

Anyone else?



Robin
Liverpool/Blackburn
UK
# 3  
Old 11-18-2010
Hi Robin,

You are exactly correct. My terminal baud rate is 300. i executed stty command and found it.

speed 300 baud; -parity
eol2 = <undef>; dsusp = ^Z; lnext = <undef>
brkint -inpck icrnl ixoff onlcr tab3
echo echoe echok

I changed into 2400. Now i am getting 24 lines in a screen...Gr8 and thanks for your help.

By the way, is there any impact because of changing baud rate?
# 4  
Old 11-24-2010
Not that I'm aware of on non-archaic network kit, unless you have a very convoluted route across multiple networks and the throughput is terrible, e.g. a remote branch operating over a 500K dial-up (if you can still get those?)

Anything that is reasonably good should be fine. I even used to have a 28k dial up from home for remote suppose that would work just fine. It is only your personal experience of having a problem that would illustrate an issue. Perhaps the odd missed keystroke or unprintable character, especially when using cat on a large text file. That could flood it out, but otherwise, i would not worry too much. It's nothing that you can't undo really.



Glad to be of help.

Robin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Awk: Page number with total number of pages, EG Page 1 of 5

So I've worked how to add page numbers based on regex. It's using the footer text. How do we get the total amount added so we have page number with the total number of pages? Desired output: Page No:1 of 5 Thanks in advance. (15 Replies)
Discussion started by: tugar
15 Replies

2. Shell Programming and Scripting

script for adding page number before page breaks

Hi, If there is an expert that can help: I have many txt files that are produced from pdftotext that include page breaks the page breaks seem to be unix style hex 0C. I want to add page numbers before each page break as in : Page XXXX Regards antman (9 Replies)
Discussion started by: antman
9 Replies

3. Shell Programming and Scripting

Print multiple copies page by page using lp command

Hi I have a pdf file that is being generated using the rwrun command in the shell script. I then have the lp command in the shell script to print the same pdf file. Suppose there are 4 pages in the pdf file , I need to print 2 copies of the first page, 2 copies of the second page , then 2... (7 Replies)
Discussion started by: megha2525
7 Replies

4. Web Development

Page load time- local page

Hi Is there a way to calculate the page load time, I am trying to calculate the load time of a page locally. I found tools to do this over http or https but none that work locally. Any ideas? Thanks. (4 Replies)
Discussion started by: jamie_123
4 Replies

5. UNIX for Dummies Questions & Answers

display command output page per page

Good afternoon, I wonder how i could use unix commands to ease the reading of long command result output ? like the "php -i" or any other command that returns a long answer. I could not find the right terms to Google it or search the forum. Therefore I bother you with this question. ... (3 Replies)
Discussion started by: Mat_k
3 Replies

6. Solaris

High Page In and Executable page In

Hi, Currently I'm experience very high page ins on my system running on solaris 10. From vmstat, the page ins figure is very high, further drill down shows the page ins are from file system and occassional spike in executable page ins. Details as follow: oracle@perch:/files>> vmstat 5... (9 Replies)
Discussion started by: srage
9 Replies

7. AIX

NIM server setup on etherchannel setup environment

I know that IBM's official stance is that NIM does not work on etherchannel environment, but has anyone able to get around it? I'm working on a p5-590 LPAR system, and the NIM master and clients are all on the same frame. Any help is appreciated. (1 Reply)
Discussion started by: pdtak
1 Replies

8. Shell Programming and Scripting

lpr- how to print from page to page

hi all i have file_1 which contains 66 pages and i want to print only page 1 to 3 i try to write like this lp -d name_of_printer file_1 -P 1-7 this command does not work any ideas ? (4 Replies)
Discussion started by: naamas03
4 Replies

9. Solaris

hp1320 page setup

hi all , i have configured an hp1320 printer using jetadmin . but the printer is starting at the middle of the page . is there a method to do a page setup for the printer . please note : that this printer is used to printer oracle reports and for this reason i need to do a page setup . ... (1 Reply)
Discussion started by: ppass
1 Replies

10. AIX

map Page Down and Page up to ] and [

how do I map Page Down and Page up to ] and [ in my terminal using the .exrc file. Currently its not working and the use of ^F and ^B doesn't attract me at all. (0 Replies)
Discussion started by: buddy_amazing
0 Replies
Login or Register to Ask a Question