Contents - Index


 

Use EditDuplicateLine to create a specified number of copies of the current line and place them immediately after or immediately before the current line.

 

EditDuplicateLine may also be entered as DuplicateLine, DupLine, or Dup[licate].

 

Optional Operands

 

FCT specifies how many times to duplicate the current line.

 

 Default: 1.

 

LOC specifies the location to place the new lines relative to the current line. Specify B[efore] to place the lines before the current line.  Specify A[fter] to place the lines after the current line.

 

 Default: After.

 

Pressing Alt-D invokes the following command sequence:

 

   => EditDuplicateLine; CursDown

 

Pressing Ctrl-D invokes the following command sequence:

 

   => EditDuplicateLine Loc=Before; CursUp

 

Return Codes

 

OK Successful.

 

Examples

 

Insert two copies of the current line immediately after the current line:

 

   => dup 2

 

Insert a single copy of the current line immediately after the current line:

 

   => dup

 

Insert a single copy of the current line immediately before the current line:

 

   => dup ,b