Back Word [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Back Word
Purpose
Moves the cursor to the beginning of the current word or a previous word.
Default Syntax
[n] b
where n is a count representing the number of words the cursor is to
move. The default value of n is 1.
Description
This command moves the cursor to the first character of the current word.
If the cursor is already on the first character of a word or between
words, the command moves the cursor to the first character of the
previous word. The cursor moves to the previous line when:
* The cursor is at the first column of a line and you enter the
command.
* You specify a count greater than the number of words to the left
of the cursor.
Word Definition
HP EDIT enables you to specify the type of characters that constitute an
HP EDIT word. There are four possible word definitions. You can specify
a definition other than the default value by changing the value of the
Word Category parameter from the Set Options screen.
The following word definition options are available:
[a-zA-Z0-9_'-] Words consist of upper and lowercase letters,
digits, underscores, apostrophes, and hyphens.
Words are separated by spaces and any
non-alphanumeric characters besides the underscore,
apostrophe, or hyphen. This is the default
definition.
[a-zA-Z0-9_] Words consist of upper and lowercase letters,
digits and underscores. Words are separated by
spaces and any non-alphanumeric characters besides
the underscore.
[a-zA-Z0-9] Words consists of upper and lowercase letters as
well as digits. Words are separated by spaces and
any non-alphanumeric characters.
[~ ] Words consist of any non-space characters separated
by spaces.
Procedures
To move the cursor to the first character of the current word:
1. Press the b key.
To move the cursor to a previous word:
1. Type a count representing the number of words you want the cursor
to move.
2. Press the b key. HP EDIT moves the cursor the specified number of
words.
or
1. Press the b key repeatedly until the cursor is positioned at the
desired location.
Examples
To move the cursor to the beginning of the word HERE:
Move the cursor here.
1. Press the b key once. HP EDIT moves the cursor to the letter h as
shown:
Move the cursor here.
To move the cursor to the beginning of the word CURSOR:
Move the cursor here.
1. Press the b key twice, or type 2 as the count and press the b key
once. HP EDIT moves the cursor to the letter c as shown:
Move the cursor here.
Related Commands
Back Character
Back Line
Forward Character
Forward Line
Forward Word
MPE/iX 5.0 Documentation