Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vi editor problem 1

Status
Not open for further replies.

TheDash

MIS
Joined
Mar 25, 2004
Messages
171
Location
US
Hi,

Can anybody help me with vi editor? Whenever I press <Esc>:
the cursor goes half screen and that's where things go wrong. I already exported my term as vt100.

Thanks in advance
 
It seems like there is something wrong with your terminal definition and vi thinks that the window has less lines in it than it actually has. If you enter control-l (that's an ell), does vi display data only in half the screen? Also, what OS, version of vi, terminal/graphics window are you running with?

CaKiwi
 
Hi,

Thanks for the reply. Initially, a file is displayed on entire screen. But, "filename" 51 lines, 1678 characters appears at the half. If I press a ctl-l at this point the above line disappears and the actual file line appears. Now, If I press <Esc>:, the cursor comes back to the middle of the screen. Also, I won't scroll till the end of file. The last line keeps overwritten. I am using HP-UX 11.00 and F-Secure SSH Client. Sorry, I don't know vi version.

Thanks again.
 
make sure your client 'emulation' is setup correctly - check the configuration settings.

also if you 'shrunk/expanded' the window - it might have some effect. Don't know about HP-UX, but for Solaris, doing /usr/openwin/bin/resize will do the trick.

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Ensure that environment variable $LINES is set (and matches the number of lines in the window).
 
vgersh,

Thanks. In HP-UX, it is /usr/bin/X11/resize
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top