Set Distance To Mark [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Set Distance To Mark
Purpose
Sets the count as the distance to a specified mark.
Default Syntax
[n] #
where n represents a mark number from 1 to 11. The default value of n is
1.
Description
This command sets the count to a value equal to the number of lines
between the current cursor location and the specified mark. The count
includes the current line. For instance, the distance between a mark on
the second line and the cursor on the third line is two, rather than one.
Command Process
When you execute the command, HP EDIT displays the distance between the
two points as a number on the message line. You can then execute any
line-oriented command that implements a count, such as one of the cut or
copy commands. HP EDIT automatically uses the number displayed as the
count.
If the cursor is below the line containing the specified mark when you
execute the command, the mark swaps positions with the cursor.
Consequently, if you execute the command again from the new cursor
position and specify the same mark number, the same count appears.
Command Application
[REV BEG]
This command is helpful in performing automatic count operations. Rather
than manually counting the number of lines, you can use the Set Mark
command to mark the location where you want to begin or end a count.
Then you can move the cursor to the other end of the text and execute the
Set Distance To Mark command to automatically count the number of lines
in the text. You can also achieve the same result with a preexisting
mark by specifying the desired preexisting mark number before executing
the command.[REV END]
Procedure
To set the count between the current cursor location and a specified
mark:
1. Move the cursor to a location above or below the mark where you
want HP EDIT to set the mark as a distance between the two points.
2. Type the number of the mark. HP EDIT displays the mark number on
the message line. If the specified mark does not exist, you must
set it first with the Set Mark (`) command. If you do not specify
a number, the default value is mark 1.
3. Press the # key, or press the Cut/Paste function key, followed by
the Count Lines function key. HP EDIT displays the distance
between the cursor position and the mark as a count on the message
line.
Related Commands
Go To Column/Mark
Go To Line/Mark
Set Distance To Previous Location
Set Mark
Swap Cursor With Mark
Swap With Previous Location
MPE/iX 5.0 Documentation