Space bar issue in Vi editor on Linux - Solaris


 
Thread Tools Search this Thread
Operating Systems Linux Space bar issue in Vi editor on Linux - Solaris
# 1  
Old 04-28-2010
Space bar issue in Vi editor on Linux - Solaris

Hi I have a process generating a file in Solaris. Now we have migrated the process to Linux. When we open the file in vi on solaris and hit space bar, it stops after reaching the end of line. But in linux it continues to go on the next line. So I want to know whether the difference is between the files or difference is between the vi editors?
If there is a difference between the vi editors can you give me the link of the document for reference?
Thanks
CSS
# 2  
Old 04-28-2010
Just to clarify -- you have a version of vi that literally won't let you have more than 80 characters per line? Or does it wrap to the next line?
# 3  
Old 04-28-2010
Quote:
Originally Posted by Corona688
Just to clarify -- you have a version of vi that literally won't let you have more than 80 characters per line? Or does it wrap to the next line?
When you hit space bar it goes to the next character in VI editor. At the end of line, in Solaris it stops and doesn't go to the next line. But in Linux it goes to the first character of the next line. The file has more than 80 characters. When opened in vi it shows 600 lines in both Solaris and Linux. Also wc -l gives the same count in Solaris and Linux.
The Linux version is Red Hat Linux 2.6.18-53.el5
The Solaris version is SunOS 5.9
The vi on Red Hat Linux is VIM - Vi IMproved version 7.0.237

Last edited by sudhamacs; 04-28-2010 at 01:33 PM..
# 4  
Old 04-28-2010
Try :set wrap and :set nowrap to see if they get the behavior you want.
# 5  
Old 04-29-2010
Quote:
Originally Posted by Corona688
Try :set wrap and :set nowrap to see if they get the behavior you want.
No change as per the content and behavior.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Issue with awk command between Linux and Solaris

Hi, Here is the output using bash profile on Linux uptime 04:59:14 up 16 days, 4:48, 2 users, load average: 1.00, 1.00, 1.20 Here is the output using bash profile on Solaris uptime 4:00am up 84 day(s), 22:21, 3 users, load average: 0.09, 0.10, 0.12 Now,... (4 Replies)
Discussion started by: mohtashims
4 Replies

2. Solaris

Solaris 8 metainit space issue

I am trying to create soft partition metaclear -r d109 metainit d109 -p d100 -o 178423817 -b 33554432 After i did this i saw the df -k /dev/md/dsk/d109 0 779600337 0 0% /test df -k shows that it is full? also i have tried adding no logging entry in /etc/vfstab... (0 Replies)
Discussion started by: gull05
0 Replies

3. Cybersecurity

SSH password-less login issue between linux and solaris

Hello Gurus, I am trying to set up bidirectional password-less login between a linux and a Solaris. The way I am doing is very simple, which is creating pub/priv key pairs on each host and add the pub key to each other's authorized_keys file: ssh-keygen -t rsa (I tried dsa, and it didn't work... (4 Replies)
Discussion started by: error_lee
4 Replies

4. HP-UX

Vi editor issue

When I open vi editor and close it , the content of the vi editor is shown in console even after closing. Same is happening for manpages also.. Can anyone let me know how to solve the issue .. $uname -a HP-UX <servr_name> B.11.11 U 9000/800 657359313 unlimited-user license ... (6 Replies)
Discussion started by: soumyabubun
6 Replies

5. Shell Programming and Scripting

In vi editor I want to replace next line char by space

in vi editor I want to replace next line char by space help me eg: input: 123 123 123 output: 123 123 123 (5 Replies)
Discussion started by: RahulJoshi
5 Replies

6. Shell Programming and Scripting

Pressing "Enter/Space bar" using Net::TELNET? in Perl

I'm trying to learn how to get my script to execute the enter button when it telnets into a router and the router displays output but you need to press the space bar or enter button to continue displaying my output of the router. How is this done? (0 Replies)
Discussion started by: xmaverick
0 Replies

7. Shell Programming and Scripting

Replace space and vertical bar with verical bar

I am trying to get sed, tr or awk to search a file that contains records with fields delimited by the vertical bar | and replace the occurrences in the records where the vertical bar is preceded by a space " |" with a vertical bar. Sample data record zelli |||59 Stonewall Dr ||W Barnstable |MA... (2 Replies)
Discussion started by: clintrpeterson
2 Replies

8. Shell Programming and Scripting

To display 1 or 2 space bar output

Dear Experts, Please help to advice me for the command to show the output below:- 1) If i input 3, 201, 222 then the output should show 1 space bar as below 201 222 2) If i input 4, 201, 1509 then the outpur should show 2 span bar as below 201 1509 3 will be for 1 space bar between 201... (2 Replies)
Discussion started by: missutoomuch
2 Replies

9. HP-UX

How to add space in between columns in VI editor

Hi, I am trying to add space after 3rd and 6th column for editing a file in special format. How should I achieve in VI?. So, is it possible to do in it in sed ? thanks vipa (1 Reply)
Discussion started by: vipas
1 Replies
Login or Register to Ask a Question