The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SCO
Google UNIX.COM


SCO Santa Cruz Operation (SCO) was a software company based in Santa Cruz, California which was best known for selling three UNIX variants for Intel x86.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
set EDITOR=vi -> default editor not setting for cron tab aarora_98 Shell Programming and Scripting 6 09-12-2008 11:01 PM
Which editor to use? Nafanja UNIX for Dummies Questions & Answers 5 11-29-2007 09:58 AM
Vi editor jazz High Level Programming 1 11-17-2005 05:37 AM
vi editor eloquent99 UNIX for Dummies Questions & Answers 1 01-14-2003 02:49 AM
Using the vi editor pbsys UNIX for Dummies Questions & Answers 2 11-05-2001 12:27 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-16-2003
Registered User
 

Join Date: Sep 2003
Location: mumbai
Posts: 20
regarding vi editor

hello friends,
i wud like to get some suggestion for a Q i faced in an interview..........

the Q is...........
suppose a person is working on vi .the file is very large and he hasn't saved anything ........suddenly power goes off and system shuts down ...after power comes up the system is rebooted and working fine but can that person get his data?????????pls suggest .......

thx

girish
Reply With Quote
Forum Sponsor
  #2  
Old 09-16-2003
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
yes - see the man page for vi

-r filename
Edit filename after an editor or system crash. (Recov-
ers the version of filename that was in the buffer
when the crash occurred.)

If the system crashes, it will have saved your editor session in a recoverable file which is recovered with the -r option. Note that the last few commands, key strokes, may not be there but the majority of any changes will be.
Reply With Quote
  #3  
Old 02-19-2008
Registered User
 

Join Date: Feb 2008
Location: India
Posts: 4
How to use a Vi editor on solaris 10 platform

When ever I use Vi editor on the solaris platform the backspace key does not work as expected also the delete key works as Caps key and the arrows key when used results in writing A B C D alphabets and the keys above the Ins and Del results in others alphabets like M N etc..

Did the Vi editor on the solaris works on the SPARC platform Is it possible to other editors rather than Vi here ........Please suggest....

I am using solaris 10 ( Intel platform )
Reply With Quote
  #4  
Old 02-19-2008
jgt jgt is offline
Registered User
 

Join Date: Apr 2007
Location: 44.21.48N 80.50.15W
Posts: 348
More likely the terminal emulation and TERM variable are not compatible.
Reply With Quote
  #5  
Old 1 Week Ago
Registered User
 

Join Date: Aug 2008
Location: Concord, NH
Posts: 21
Quote:
Originally Posted by jgt View Post
More likely the terminal emulation and TERM variable are not compatible.
That quite likely is the case. Chances are that the TERM variable should be set to one of {XTERM,VT100,VT200}, depending on the type of keyboard, but if it is something entirely different, then that should be taken into consideration. The XTERM terminal type may or may not support those keypad keys. Most terminals adhere to a pseudo VT100 set of key bindings. The VT200 has a few function keys in addition to those found on a VT100 keyboard. The typical PC keyboard can usually, but not always emulate VT100 sequences. Check and find out.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:47 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0