LOOP1
LOOP2
$PROMPT$
DRAWTERM
WYSE 50H
LOOP3
LOOPCLR3
PAUSE
STORY1
1 I N T E R O F F I C E M E M O R A N D U M
2
3 TO: Corporate UNIX Training Date: April 1, 1988
4 FROM: Yori McDaniel
5 Subject: UNIX Training and Education
6 ---------------------------------------------------------------------
7 I recommend we obtain CourseWare Technologies' training courseware -
8 the "CTI UNIX Tutorials ". We tested the "Getting Started"
9 package and believe CTI's on-line packages are designed to provide
10 high quality UNIX training that will reduce our training
11 cost by 60%.
STORY2
1 I N T E R O F F I C E M E M O R A N D U M
2
3 TO: Corporate UNIX Training Date: April 1, 1988
4 FROM: Yori McDaniel
5 Subject: UNIX Training and Education
6 ---------------------------------------------------------------------
7 I recommend we obtain CourseWare Technologies' training courseware -
8 the "CTI UNIX Tutorials ". We tested the "Getting Started"
9 package and believe CTI's on-line packages are designed to provide
10 high quality UNIX training that will reduce our training
11 cost by 60%.
CR4
A CARRIAGE RETURN is not a proper response. The correct command is
to simply try a '$W1$ '. Please try again.
$V9$
ERR
That isn't correct. You must have the number '$V2$ ', followed by
the command '$V1$ ', followed by the letter to be searched for, the
'$V3$ '. Try again.
No. The correct form of the command is '$V2$ $V1$ $V3$ '.
$V9$
V2B
$B$
Not quite. The command '$V1$ $V2$ ' will try to find the next occurrence
of the number '$V2$ '. Since there wasn't any on this line, the
terminal beeped at you. Please try again.
$V9$
V3B
V3C
The command '$V1$ $V3$ ' will only find the first occurrence of the letter
'$V3$ '. The easy method to find the $V2$ th occurrence of the '$V3$ ', is to
just put a number in front of the command you just entered. Try
again.
$V9$
JMP2
You will be helped this time but remember to exit
from vi session, you should type :wq
CONTINUE2
To begin the command you must first type a :
Please try again.
RCHK
:
This is not correct.
$T1$
$T2$
EXIT2
:wq
WMESG
"practice" 11 lines, 540 characters
$PROMPT$
NEXTONE
The vi or visual editor is a display oriented, interactive
text editor. When using vi, the screen of your terminal
acts as a window onto the file you are editing. The current
position on the screen is marked by a cursor. There are
commands to cursor forward and backward or by characters,
words, sentences, paragraphs, or screenfuls.
CURSORMOVE
To call the vi editor, give the command:
vi filename
where filename is the file you wish to edit.
A filename:
* should be no longer than 14 characters,
* should begin with an alphabetic character or a number
(not a punctuation mark), and
* should not contain ! " * & ^ ( ) ; > < | & ? [] $
because they have special meaning for the Shell.
Let's say you want to edit a file called practice
Note that if you make a request that the computer
does not understand, your terminal will either beep
or flash the screen to let you know that you entered
something incorrectly. Don't worry, simply type the
command again.
Invoking editor "vi" practice, - 1.0.6.0.1
At the $PROMPT$ prompt, please enter the command: vi practice
(Remember that a space between the words is required.)
ACCEPT1
I'll type vi practice for you this time,
but be more careful in the future!
CONTINUE1
$PROMPT$
"practice"
That is not quite right. The vi editor will work using edit under
the newest version of the editor, however I would prefer that you
use vi.
Go ahead and try again.
Not quite. You have the command properly stated, and the correct
filename, but you have them in the reverse order. Try again.
Almost. You have the command and the filename correct, but there
must be at least one space between the command and the filename. In
this case, the shell would attempt to execute a file called
vipractice.
Please try again.
No. Think about it. You wish to use vi to open
a file called practice. Try it again just like it is here.
vi practice
BYPASS1
vi practice
ENTER1
~
~
~
~
~
~
~
~
~
"practice" 11 lines, 540 characters
When you call an existing file into the editor, you
will see a series of lines, each containing 0 or
more printed characters.
Each line in the file has a conceptual line number.
You may see these numbers each time you use the editor.
They are there for editing convenience only; they are not
part of the file. You'll learn later how to determine
whether you see them or not.
The appearance of a tilde character ( ~ ) in the first
column indicates an empty line on the screen that is not
part of the file.
BYPASS2
vi practice
ENTER2
~
~
~
~
~
~
~
~
~
"practice" 11 lines, 540 characters
When you use the vi editor, a copy of the file
you request is placed in a temporary work space
called a buffer.
Using a buffer is like working on scratch paper. You can
scratch out words, rewrite sentences, or move paragraphs.
When you are satisfied with your draft, you can make a
good copy.
BUF1
When you want to save your work, you can write your
buffer copy to the original filename on the disk. Then
you can quit the editor.
BUF2
Getting out of the vi editor:
To exit the vi program, enter the the following command:
:wq <CR>
This command writes your file back onto the
disk and quits your session with vi.
On the following screen, please use:
:wq <CR>
to save our sample file and get out of vi.
Notice that you will get your shell prompt back.
This means that the system is ready to accept
another request.
~
~
~
~
~
~
Exiting "vi" editor practice, - 1.0.6.0.2
please use :wq <CR>
to save the file and get out of vi.