Forward Word [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Forward Word
Purpose
Moves the cursor to the next word.
Default Syntax
[n] w
where n is a count that represents the number of words to the right the
cursor is to move. The default value of n is 1.
Description
This command moves the cursor to the first character of the next word.
The cursor moves to the next line when:
* The cursor is positioned at the last word of a line and you enter
the command.
* You specify a value before entering the command that is greater
than the number of words to the right 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 beginning of the next word:
1. Press the w key.
To move the cursor more than one word to the right, either:
1. Type a count representing the number of words you want the cursor
to move.
2. Press the w key. HP EDIT moves the cursor the specified number of
words.
or
1. Press the w 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 w 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 w key twice, or type 2 as the count and press the w key
once. HP EDIT moves the cursor to the letter c as shown:
Move the cursor here.
Related Commands
Forward Character
Forward Line
Back Character
Back Line
MPE/iX 5.0 Documentation