Vi editor not working


 
Thread Tools Search this Thread
Operating Systems Solaris Vi editor not working
# 1  
Old 05-25-2014
Vi editor not working

Hi All,

When i try to use vi editor to view content of a file i get error "Terminal too wide"

I try to use the following stty command though i dont know the purpose of it ( as it was said in some oracle forum )
but still the same error returns.

"stty columns 120"

Could you explain me the purpose of 'stty' command and guide me to fix this vi editor issue.

Operating system used -- Sun solris 5.10

Thanks,
Maddy
# 2  
Old 05-25-2014
vi has always followed my terminal size, so I doubt a bit .. unless you had it configured for a certain size or terminal type and you are using something else… look if you have a .exrc in your home directory and if so what is its content?
# 3  
Old 05-25-2014
What happens when you run
Code:
 /usr/openwin/bin/resize

# 4  
Old 05-25-2014
This happens to me all the time on Solaris. I physically resize my window to make it smaller and then retry the vi command. It always works with the second try with the smaller window. It might be possible to get to run in a too-large window by artifically ignoring the surplus columns but that would lead to weird editing experience.
# 5  
Old 05-26-2014
Maybe you can use vim?
If not yet in /opt/csw/bin/ you can easily compile the vim sources.
It is really a "vi improved"!
# 6  
Old 05-27-2014
Quote:
Originally Posted by Perderabo
This happens to me all the time on Solaris. I physically resize my window to make it smaller and then retry the vi command. It always works with the second try with the smaller window. It might be possible to get to run in a too-large window by artifically ignoring the surplus columns but that would lead to weird editing experience.
What he said. Just re-size the window.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Disk Space Utilization in HTML format working in one environment and not working on the other

Hi Team, I have written the shell script which returns the result of the disk space filesystems which has crossed the threshold limit in HTML Format. Below mentioned is the script which worked perfectly on QA system. df -h | awk -v host=`hostname` ' BEGIN { print "<table border="4"... (13 Replies)
Discussion started by: Harihsun
13 Replies

2. Shell Programming and Scripting

Working web service call not working with curl

Hello, Newbie here, I have a perfectly well working web service call I can issue from chrome (PC Windows 10) and get the results I want (a dimmer being turned on in Fibaro Home Center 2 at level 40) I am not allowed to post urls but the below works with http and :// and... (3 Replies)
Discussion started by: abigbear
3 Replies

3. Shell Programming and Scripting

Automating pbrun /bin/su not working, whenever manually it is working using putty

I am trying to automate a script where I need to use pbrun /bin/su but for some reason it is not passing thru the pbrun as my code below. . ~/.bash_profile pbrun /bin/su - content c h 1 hpsvn up file path I am executing this from an external .sh file that is pointing to this scripts file... (14 Replies)
Discussion started by: jorgejac
14 Replies

4. Solaris

Editor for working with large files

Hi, We have file which is about 756 MB of size and vi/vim do not work when we try to edit this file. I'm looking for any editor ( ok if its NOT free ) which has the ability to open/edit a file of 1+GB seamlessly. The OS is SUN Solaris 10 ( Sparc ) Thanks in Advance Maverick (13 Replies)
Discussion started by: maverick_here
13 Replies

5. Red Hat

Nslookup working but ping not working at windows client

Hi Team we have created a DNS server at RHEL6.2 environment in 10.20.203.x/24 network. Everything is going well on linux client as nslookup, ping by host etc in entire subnet. We are getting problem in windows client as nslookup working as well but not ping. all the firewall is disabled and... (5 Replies)
Discussion started by: boby.kumar
5 Replies

6. Shell Programming and Scripting

Script not working in cron but working fine manually

Help. My script is working fine when executed manually but the cron seems not to catch up the command when registered. The script is as follow: #!/bin/sh for file in file_1.txt file_2.txt file_3.txt do awk '{ print "0" }' $file > tmp.tmp mv tmp.tmp $file done And the cron... (2 Replies)
Discussion started by: jasperux
2 Replies

7. UNIX for Dummies Questions & Answers

working with vi editor

Hi there, I am unable to find solution to the following question. 1) How do you copy 10 lines starting from the current and paste at the end of file? 2) How do you delete five lines starting from the current and four lines above? 3) What is the command to remove all space... (1 Reply)
Discussion started by: grc
1 Replies

8. Solaris

Epic Editor was not able to obtain a license for your use. Feature Epic Editor :Licen

Epic Editor was not able to obtain a license for your use. Feature Epic Editor :License server is down (1 Reply)
Discussion started by: durgaprasadr13
1 Replies

9. Shell Programming and Scripting

set EDITOR=vi -> default editor not setting for cron tab

Hi All, I am running a script , working very fine on cmd prompt. The problem is that when I open do crontab -e even after setting editor to vi by set EDITOR=vi it does not open a vi editor , rather it do as below..... ///////////////////////////////////////////////////// $ set... (6 Replies)
Discussion started by: aarora_98
6 Replies

10. UNIX for Dummies Questions & Answers

Pasting text in VI editor from a different editor

Hi, I knw its a silly question, but am a newbie to 'vi' editor. I'm forced to use this, hence kindly help me with this question. How can i paste a chunk 'copied from' a different editor(gedit) in 'vi editor'? As i see, p & P options does work only within 'vi'. (10 Replies)
Discussion started by: harishmitty
10 Replies
Login or Register to Ask a Question