SED - Functions that operate of a block of data

SED  -  Functions That Operate On A Block Of Data

Top  Previous  Next

 

The editor maintains reference to two positions within the record; the cursor position and the mark.

 

Set mark (Esc-.)

The mark is set at the current cursor position.

 

Swap mark (Ctrl-X Ctrl-X)

The swap mark function interchanges the positions of the cursor and the mark. It has no effect if the mark has not been set.

 

Copy region (Esc-W)

The text within the region bounded by the mark and the current cursor position (which may be either way around) is copied to the kill buffer.

 

Delete region (Ctrl-W)

The text within the region bounded by the mark and the current cursor position (which may be either way around) is copied to the kill buffer and deleted from the record.

 

Insert kill buffer (Ctrl-Y or Esc-Y)

The contents of the kill buffer are inserted at the current cursor position. The kill buffer retains a copy of this text thus allowing multiple insertions.

 

Lowercase region (Ctrl-X Ctrl-L)

All words in the region between the mark and the cursor are converted to lowercase.

 

Uppercase region (Ctrl-X Ctrl-U)

All words in the region between the mark and the cursor are converted to uppercase.