Editing Files; Starting Vi; Selecting Vi Editing Functions - HP 9000 Series Owner's Manual

Industrial workstations for hp-ux users
Hide thumbs Also See for 9000 Series:
Table of Contents

Advertisement

Editing Files

You can use the HP VUE Text Editor (see
HP-UX interactive text editor
create new ones. The
editing, and for some HP VUE functions. This section introduces the basics of
using
. For detailed information, see
vi
Text Editors .

Starting vi

Start
by entering the command
4
vi
lename exists, you will see the rst screen of that le. If the le does not
exist, it is created, and you will see a blank screen.

Selecting vi Editing Functions

The
editor has several functional modes. When you enter
vi
command mode and it is in this mode that you select all editing functions.
Your selection determines what you can do to the text.
Press
to ensure that
4
5
ESC
of the following commands (among others):
(the insert
i
command)
(the append
a
command)
(the delete
x
command)
Each command in command mode allows you to perform only that function.
For example, if you place your le in text mode by typing
character" command), then you may only replace one character. You are then
placed in command mode, and you can return to text mode by typing
before inserting text.
4-14 Using the Command Line
to view and edit text les, as well as to
vi
editor is the default for the Elm mailer, command line
vi
vi
is in command mode. Then you can execute any
vi
Places your le in text mode and enters whatever you type
preceding the cursor. Everything after the cursor will be
moved to the right.
Places your le in text mode and enters whatever you type
after the cursor. The cursor moves to the right, and then text
is inserted as with
.
i
Deletes the character that is highlighted by the cursor. This
command does not put your document in text mode.
HP VUE User's Guide ) or the
The Ultimate Guide to the vi and ex
lename at the prompt. If a le called
r
you are in
vi
(\replace a single
or
i
a
DRAFT
2/5/97 11:31

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

700i series745i/50745i/100747i/50747i/100

Table of Contents