Use EditShift to shift current session text either right or left a specified number of columns in a specified column range for a specified group of lines.
EditShift may also be entered as EditSh[ift] or Sh[ift].
The group of lines can be specified by pre-selecting the lines (see Selection) or by using the FCT operand. If neither a pre-selection or FCT operand is provided, the group of lines consists solely of the current line.
Required Operands
COL number preceded or followed by a plus (+) or minus(-) sign. The plus sign causes the text to shift to the right, the minus sign causes the text to shift to the left. The amount shifted is the numeric value entered for COL. If only the + or - is entered, the text will be shifted by one column.
Optional Operands
FCT is the number of lines for which text shifting will occur. If FCT is specified as *, all lines are shifted through the end of the session.
Default: 1.
ZONE is the column range in which to shift text. Enter it in the format xxx-yyy where xxx and yyy are numbers between 1 and the session maximum line width. For example, ZONE=11-20 signifies columns 11 to 20. ZONE=5 is the same as ZONE=5-5, ZONE=5-* specifies columns 5 through the session maximum line width, and ZONE=-5 is the same as ZONE=1-5.
Default: current session zone (if sequence numbering is on, adjusted so that sequence numbers are not shifted).
Pressing Alt-> invokes the following command:
=> EditShift +1
Pressing Alt-< invokes the following command:
=> EditShift -1
Any text shifted out of the zone is lost. That is, EditShift can be used to eliminate text in a column range.
Return Codes
OK Successful.
Examples
Shift text left 6 columns within columns 9 to 20 starting at the current line for 2 lines:
=> sh -6,2,9-20