HP NonStop G-Series User Manual

Page 165

Advertising
background image

you enter vi or ex. In this file, you do not need to use the vi command :, because these commands
are read directly by the underlying ex editor.
For example, to customize your environment to always display line numbers for your files, to use
the map sequence shown in the previous subsection, and to set an automatic right margin of five
spaces, you would open the .exrc file with vi in your home directory and add the following
lines of text:

set number
map q oThis space held for new text<Ctrl-V><Esc>
set wrapmargin=5

After you write this file, open your example file by reinvoking vi to verify that it works.

Using the Underlying ex Commands

165

Advertising
This manual is related to the following products: