- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vi editor : cant view file properly in vi
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 01:54 AM
тАО04-03-2008 01:54 AM
When I open a file in vi, I see only the first line. That too with lot of extra characters.
I expected to see all the contents of the file but I cant.
contents of file -
$ cat tarlist
api
appserv
bin
cblbin
install
output
prcs
psconfig.sh
script
sql
sqr
src
Below is what I see when I do a vi of the same file. the telnet client used is -reflection. terminal type is VT500-7
ver - HP UX B.11.00
$ vi tarlist
~0y0C23y0C"tarlist" 12 lines, 74 characters0y0Ci1y0Cappserv
Pls help.
Regards,
Satya
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 01:58 AM
тАО04-03-2008 01:58 AM
Re: vi editor : cant view file properly in vi
Your TERM variable is wrong.
I suggest vt100 or vt220
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 02:02 AM
тАО04-03-2008 02:02 AM
Re: vi editor : cant view file properly in vi
I tried the closest match vt102 with out success.
Satya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 02:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 02:14 AM
тАО04-03-2008 02:14 AM
Re: vi editor : cant view file properly in vi
I would suggest
#export EDITOR=vt100
#stty sane
#vi <>
Hope this help.
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 02:32 AM
тАО04-03-2008 02:32 AM
Re: vi editor : cant view file properly in vi
Your solution did work thanks! but I have to do this every time I login. Do you hv a permanent fix ?
Regards,
Satya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 02:34 AM
тАО04-03-2008 02:34 AM
Re: vi editor : cant view file properly in vi
to avoid doing everytime add those two lines in ur .profile file.
I would wonder to know if the command I sent worked or not.
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 02:36 AM
тАО04-03-2008 02:36 AM
Re: vi editor : cant view file properly in vi
I'm sorry your commands did not solve my problem. Pls can you detail what I need to check in the .profile ? Any specific setting ?
Satya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 02:40 AM
тАО04-03-2008 02:40 AM
Re: vi editor : cant view file properly in vi
anyways just add those 2 line
eval 'ttytype -s'
tser
at the end of your .profile file of user.
.profile would be in home directory of user.
so that thoese command would always run when user logs in.
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 02:42 AM
тАО04-03-2008 02:42 AM
Re: vi editor : cant view file properly in vi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 03:48 AM
тАО04-03-2008 03:48 AM
Re: vi editor : cant view file properly in vi
Regards,
Satya