Sponsored Content
Full Discussion: vi editor for SUN OS
Operating Systems Solaris vi editor for SUN OS Post 302202863 by sparcguy on Friday 6th of June 2008 12:26:42 AM
Old 06-06-2008
you can run

bash -o vi

or

ksh -o vi

depending on your shell.

after that just to esc+k (press 'k' key and hold it there) will recall all the commands.

Beware tho, if more than one person logging on using same unix id running commands and trying esc+k at the same time, before you 'enter' make sure you look carefully first. example

You run ls -l as root in /
Your friend in maybe /export/home runs command rm -r *
you esc+k and press enter key without looking you may end up running rm -r * in / and you're big dodo Smilie



also try pressing esc+j and see what happens

Last edited by sparcguy; 06-06-2008 at 01:36 AM..
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Text editor on Sun OS 3.0

I trying to setup a netranger security box. I don't know unix and went to view a filein the text editor. What is command to exit text editor. I tried esc q and ctrl q. HELP!!! STUCK IN TEXT EDITOR :) (2 Replies)
Discussion started by: malic
2 Replies

2. UNIX for Advanced & Expert Users

Help: Sun Disk partitioning for Sun V240 & StorEdge 3300

Dear Sun gurus, I have Sun Fire V240 server with its StorEdge 3300 disk-array. Following are its disks appeared in format command. I have prepared its partitions thru format and metainit & metattach (may be i have made wrong steps, causing the errors below because I have done thru some document... (1 Reply)
Discussion started by: shafeeq
1 Replies

3. UNIX for Dummies Questions & Answers

Sun Solaris 10: How do I create a bootup disc? The Sun website confuses me

Hey there, I am starting a Computer Science Foundation year at the end of this month and am trying to get a little bit ahead of the game. I have always wanted to learn Unix and am currently struggling with creating a boot disc to run Solaris (I have chosen to study this) from as opposed to... (0 Replies)
Discussion started by: Jupiter
0 Replies

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

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

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

Sun Fire 280R Sun Solaris CRT/Monitor requirements

I am new to Sun. I brought Sun Fire 280R to practice UNIX. What are the requirements for the monitor/CRT? Will it burn out old non-Sun CRTs? Does it need LCD monitor? Thanks. (3 Replies)
Discussion started by: bramptonmt
3 Replies
prompter(1)						      General Commands Manual						       prompter(1)

NAME
prompter - prompting editor front-end (only available within the message handling system, mh) SYNOPSIS
prompter [options] file OPTIONS
Adds text to the beginning of the message body, so that the rest of the body follows. This is useful for the forw command. You can sup- press this behavior by using the -noprepend option. Causes the text not to be displayed on your terminal if the draft already contains text in the message-body. This is useful for low-speed terminals. You can suppress this behavior by using the -norapid option. Specifies the line-editing characters, where char may be a character or nn, where nnn is the octal value for the character. Specifies the line- editing characters, where char may be a character or nn, where nnn is the octal value for the character. The first argument to prompter which is not an option is taken as the name of the draft file, and subsequent non-option arguments are ignored. The default settings for prompter are: -prepend -norapid DESCRIPTION
The prompter editor is a rudimentary editor provided by comp, dist, forw, and repl. It is automatically called by the above commands; you do not need to specify it. The prompter editor allows rapid composition of messages. It is particularly useful to network and low-speed (less than 2400 baud) users of MH. The prompter editor is an MH program. Although is not invoked directly, it can have its own profile entry with options; see mh_profile(4). The comp, dist, forw, and repl commands invoke prompter in one of three ways: when invoked with the -editor prompter option; by an entry in the file; or by a command at the What now? prompt. If you do not specify an editor in any of these ways, MH provides prompter as the default editor for all of these commands. For information on how to use a different editor with MH commands, see the reference pages for the appropriate commands, and also mh_pro- file(4). Composing a Message with prompter When you create a message with an MH command, the mail system provides a message template for you to fill in. This template consists of two parts: the message header, comprising a number of header fields; and the body of the message, which is the area where you type the text of your message. The prompter editor displays each header field, one at a time, for you to fill in. Fill in the component by typing the text that you want. Type <RETURN> to move onto the next component. Once you have moved on from a header field, you cannot edit what you have entered. If you want to leave a header field empty, simply type <RETURN>. You can continue a header field over one line by typing a back-slash () before the <RETURN>. Continuation lines must start with a blank (a space or a tab). The start of the message body is indicated by a blank line or a line of dashes. If you are creating a new message, the cursor is placed beneath this line to allow you to enter text. If there is already some body text in the message (for example, if you are using an existing draft, or if you are forwarding a message), you will receive a prompt: --------Enter additional text or: --------Enter initial text The cursor is placed under the prompt to allow you to enter text. To finish the message, type <CTRL/D>. You will then receive a prompt asking What now?. See whatnow(1) for more details of responses. An interrupt, usually <CTRL/C>, during component typing will abort prompter and the MH command that invoked it. An interrupt during mes- sage-body typing is equivalent to <CTRL/D>, for historical reasons. RESTRICTIONS
The prompter editor will not work with files with nulls in them. PROFILE COMPONENTS
prompter-next: To name the editor to be used on exit from prompter Msg-Protect: To set protections when creating a new draft FILES
The user profile. Temporary copy of message. SEE ALSO
comp(1), dist(1), forw(1), repl(1), whatnow(1), mh_profile(4) prompter(1)
All times are GMT -4. The time now is 06:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy