Core Help Root: Subsystems: Editor: Commands


a?fter [<text>] OR _<text>

Add <text> after current line. You may also use an underscore (_) as a shortcut character. If text does not exist you will be prompted for the input.

ap?pend <text> OR ,<text>

Add <text> after current line. You may also use a comma (,) as a shortcut character.

copy [<range>] [to] <line>

Copy <range> of text or current line to <line>.

d?elete [<range>]

Delete <range> or current line.

done|quit

Close editor without saving changes.

fill <range> <line width>

Fill <range> of lines to fit within <line width> appropriately (either by expanding or joining).

help [<command>]

Basic editor help.

i?nsert [<text>] OR '<text>

Add <text> before current line. You may also use a single-quote (') as a shortcut character. If text does not exist you will be prompted for the input.

list [<range>] [-n?umbers]

List <range> or all of edit buffer. The option -n?umbers may be used to not specify line numbers.

line <line>

Change the current line to <line>. You can also use a period (.) as a shortcut character.

move [<range>] [to] <line>

Move <range> or current line to <line>.

save|comp?ile [as] [<ref>]

Save document, if arguments are given will save alternate copy.

s?ub|sed <old> <new> [<range>] [<options>]

Search for <old> and replace it with <new> in <range> (defaulting to the current line). The character following the command is used as a seperator (a space in the example). This allows for the sed-like syntax: s/old/new/. The command 'sed' will use strsed() with regular expressions, the command 'sub' or 's' will use strsub() with literal matching. Options are any one of:

g Globally match and replace (do it multiple times)

s Single match and replace (do it only on the first occurance)

c Case matters when matching.

i Case doesn't matter when matching.

Option defaults for sed are: si

Option defaults for sub are: gi

send|mail <mail-recipient>

Used to send current contents of editor to a mail recipient.

store

Store editor--do not save changes. Editor can be resumed with @edit %0.


Invoking | Commands | Programming


the Cold Dark