Using vi editor with Solaris


 
Thread Tools Search this Thread
Operating Systems Solaris Using vi editor with Solaris
# 1  
Old 11-26-2008
Using vi editor with Solaris

When I try to edit a ( >100 lines) document using the vi editor I have problems with the screen clearing and "painting" new text. It looks as if I have not matched the terminal emulation between the server and my laptop emulator. I set the Solaris up as VT 100 as well as Terra Term. I get the same results with Putty and Hyper Terminal. Are there some settings I may be forgetting? Also, can I copy a text file from my Sun Solaris box, edit it in Windows Notepad, and then put it back in the Sun box as an alternate way to edit? Thanks
# 2  
Old 11-26-2008
try enter the following:

Code:
TERM=vt100
export TERM
EDITOR=vi
export EDITOR
resize

and try again...
# 3  
Old 11-26-2008
The last line (resize command) should probably be:
Code:
eval $(/usr/openwin/bin/resize)

or if your shell is not POSIX:
Code:
eval `/usr/openwin/bin/resize`

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Vi Editor

I have recently installed ubuntu 11.10 version in my laptop. Please tell me how to use the vi editor. Because the vi editor in ubuntu is totally different from the vi editor we have in Mandriva or Sabayon. Why am i not able to use backspace or the cursor movement keys(up, down, left, right)... (6 Replies)
Discussion started by: Sudip_Felipemas
6 Replies

2. Solaris

Is it possible to deny a user to use Vi editor in Solaris?

Hi, I want to deny Vi editor to few users, is it possible to do the same in Solaris 10. If yes, then how? Thanks in advance............ (2 Replies)
Discussion started by: ajhal04
2 Replies

3. Solaris

How to set VI editor column size on Solaris?

I am setting the size using "stty columns 120" . But I still get the prompt saying "terminal too wide " when I am in vi. is there any time limit for this setting? how to set the column size to 120 permanently? Thanks in advance, Devi (4 Replies)
Discussion started by: pvkdevi
4 Replies

4. Linux

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... (4 Replies)
Discussion started by: sudhamacs
4 Replies

5. Solaris

Installing a new text editor program on Solaris

I have installed a new text editor program on Solaris and now the only way to open it is via the command line (is that correct) So is there a way to like for example add an icon on the cde main menu so as like just click it and the program opens I am running Solaris 9 I am still a... (4 Replies)
Discussion started by: Theeb
4 Replies

6. 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

7. 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

8. 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

9. UNIX Desktop Questions & Answers

best editor

We work on AIX 5L We use vi as text editor (only scripts to create and modifiy). What do you think of emacs ? Where can I find it ? Do you know better text editor for scripts ? Thank you for all answers. (1 Reply)
Discussion started by: annemar
1 Replies

10. UNIX for Dummies Questions & Answers

vi editor

is vi editor the same for all versions of Unix???? I mean are the commands the same for say Solaris or BSD (1 Reply)
Discussion started by: eloquent99
1 Replies
Login or Register to Ask a Question