-
- .\b. This command inserts the given text before the addressed line. `.\b.'
- is left at the last line input, or, if there were none, at the line
- before the addressed line. This command differs from the a\ba command
- only in the placement of the text.
-
- (.\b.,.\b.+\b+1\b1)j\bj
- This command joins the addressed lines into a single line;
- intermediate newlines simply disappear. `.\b.' is left at the
- resulting line.
-
- (.)k\bk_\bx
- The mark command marks the addressed line with name _\bx, which must
- be a lower-case letter. The address form `'_\bx' then addresses this
- line.
-
- (.\b.,.\b.)l\bl
- The list command prints the addressed lines in an unambiguous way:
- non-graphic characters are printed in two-digit octal, and long
- lines are folded. The _\bl command may be placed on the same line
- after any non-i/o command.
-
- (.\b.,.\b.)m\bm_\ba
- The move command repositions the addressed lines after the line
- addressed by _\ba. The last of the moved lines becomes the current
- line.
-
- (.\b.,.\b.)p\bp
- The print command prints the addressed lines. `.\b.' is left at the
- last line printed. The p\bp command may be placed on the same line
- after any non-i/o command.
-
- (.\b.,.\b.)P\bP
- This command is a synonym for p\bp.
-
- q\bq The quit command causes e\bed\bd to exit. No automatic write of a file
- is done.
-
- Q\bQ This command is the same as q\bq, except that no diagnostic results
- when no w\bw has been given since the last buffer alteration.
-
- ($\b$)r\br _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be
- The read command reads in the given file after the addressed line.
- If no file name is given, the remembered file name, if any, is used
- (see e\be and f\bf commands). The file name is remembered if there was
- no remembered file name already. Address `0' is legal for r\br and
- causes the file to be read at the beginning of the buffer. If the
- read is successful, the number of characters read is typed. `.\b.' is
- left at the last line read in from the file.
-
- (.\b.,.\b.)s\bs/_\br_\be_\bg_\bu_\bl_\ba_\br _\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn/_\br_\be_\bp_\bl_\ba_\bc_\be_\bm_\be_\bn_\bt/ or
-
- (.\b.,.\b.)s\bs/_\br_\be_\bg_\bu_\bl_\ba_\br _\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn/_\br_\be_\bp_\bl_\ba_\bc_\be_\bm_\be_\bn_\bt/g\bg
- The substitute command searches each addressed line for an
- occurrence of the specified regular expression. On each line in
- which a match is found, all matched strings are replaced by the
- replacement specified, if the global replacement indicator g\bg ap-
- pears after the command. If the global indicator does not appear,
- only the first occurrence of the matched string is replaced. It is
- an error for the substitution to fail on all addressed lines. Any
- punctuation character may be used instead of `/\b/' to delimit the
- regular expression and the replacement. `.\b.' is left at the last
- line substituted. An ampersand `&\b&' appearing in the replacement is
- replaced by the string matching the regular expression. The
- special meaning of `&\b&' in this context may be suppressed by
- preceding it by `\\b\'. The characters `\\b\_\bn' where _\bn is a digit, are
- replaced by the text matched by the _\bn'th regular subexpression
- enclosed between `\\b\(\b('. and `\\b\)\b)'. When nested, parenthesized
- subexpressions are present, _\bn is determined by counting occurrences
- of `\\b\(\b('. starting from the left. Lines may be split by
- substituting new-line characters into them. The new-line in the
- replacement string must be escaped by preceding it by `\\b\'. One or
- two trailing delimiters may be omitted, implying the p\bp suffix. The
- special form s\bs followed by _\bn_\bo delimiters repeats the most recent
- substitute command on the addressed lines. The s\bs may be followed
- by the letters r\br (use the most recent regular expression for the
- left hand side, instead of the most recent left hand side of a sub-
- stitute command), p\bp (complement the setting of the p\bp suffix from
- the previous substitution), or g\bg (complement the setting of the g\bg
- suffix). These letters may be combined in any order.
-
- (.\b.,.\b.)t\bt_\ba
- This command acts just like the m\bm command, except that a copy of
- the addressed lines is placed after address _\ba (which may be 0).
- `.\b.' is left on the last line of the copy.
-
- (.\b.,.\b.)u\bu
- The undo command restores the buffer to it's state before the most
- recent buffer modifying command. The current line is also
- restored. Buffer modifying commands are a\ba, c\bc, d\bd, g\bg, i\bi and v\bv. For
- purposes of undo, g\bg and v\bv are considered to be a single buffer
- modifying command. Undo is its own inverse. When e\bed\bd runs out of
- memory (at about 8000 lines on any 16 bit mini-computer such as the
- PDP-11) This full undo is not possible, and u\bu can only undo the ef-
- fect of the most recent substitute on the current line. This res-
- tricted undo also applies to editor scripts when e\bed\bd is invoked with
- the -\b- option.
-
- (1,$\b$)v\bv/_\br_\be_\bg_\bu_\bl_\ba_\br _\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn/_\bc_\bo_\bm_\bm_\ba_\bn_\bd _\bl_\bi_\bs_\bt
- This command is the same as the global command g\bg except that the
- command list is executed g\bg with `.\b.' initially set to every line
- _\be_\bx_\bc_\be_\bp_\bt those matching the regular expression. (1, $) 192.Tp Cx ( 1
- ,$\b$)w\bw _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be The write command writes the addressed lines onto the
- given file. If the file does not exist, it is created. The file
- name is remembered if there was no remembered file name already.
- If no file name is given, the remembered file name, if any, is used
- (see e\be and f\bf commands). `.\b.' is unchanged. If the command is
- successful, the number of characters written is printed.
-
- (1,$\b$)W\bW _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be
- This command is the same as w\bw, except that the addressed lines are
- appended to the file.
-
- (1,$\b$)w\bwq\bq _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be
- This command is the same as w\bw except that afterwards a q\bq command is
- done, exiting the editor after the file is written.
-
- x A key string is demanded from the standard input. Later r\br, e\be and w\bw
- commands will encrypt and decrypt the text with this key by the al-
- gorithm of crypt(1). An explicitly empty key turns off encryption.
- 1 +\b+1\b1 )z\bz or,
-
- (1+\b+1\b1)z\bz_\bn
- This command scrolls through the buffer starting at the addressed
- line. 22 (or _\bn, if given) lines are printed. The last line print-
- ed becomes the current line. The value _\bn is sticky, in that it be-
- comes the default for future z\bz commands.
-
- ($\b$)=\b=
- The line number of the addressed line is typed. `.\b.' is unchanged
- by this command.
-
- !\b!<shell command>
- The remainder of the line after the `!' is sent to sh(1) to be
- interpreted as a command. `.\b.' is unchanged.
-
- (.\b.+\b+1\b1,.\b.+\b+1\b1)<newline>
- An address alone on a line causes the addressed line to be printed.
- A blank line alone is equivalent to .\b.+\b+1\b1 it is useful for stepping
- through text. If two addresses are present with no intervening
- semicolon, e\bed\bd prints the range of lines. If they are separated by
- a semicolon, the second line is printed.
+ .\b.
+ This command inserts the given text before the addressed line. `_\b.'
+ is left at the last line input, or, if there were none, at the line
+ before the addressed line. This command differs from the a\ba command
+ only in the placement of the text.
+
+ (_\b.,_\b._\b+_\b1)j\bj
+ This command joins the addressed lines into a single line; interme-
+ diate newlines simply disappear. `_\b.' is left at the resulting
+ line.
+
+ (_\b.)k\bk_\bx
+ The mark command marks the addressed line with name _\bx, which must
+ be a lower-case letter. The address form _\b'_\bx then addresses this
+ line.
+
+ (_\b.,_\b.)l\bl
+ The list command prints the addressed lines in an unambiguous way:
+ non-graphic characters are printed in two-digit octal, and long
+ lines are folded. The _\bl command may be placed on the same line af-
+ ter any non-i/o command.
+
+ (_\b.,_\b.)m\bm_\ba
+ The move command repositions the addressed lines after the line ad-
+ dressed by `_\ba'. The last of the moved lines becomes the current
+ line.
+
+ (_\b.,_\b.)p\bp
+ The print command prints the addressed lines. `_\b.' is left at the
+ last line printed. The p\bp command may be placed on the same line
+ after any non-i/o command.
+
+ (_\b.,_\b.)P\bP
+ This command is a synonym for p\bp.
+
+
+
+ q\bq The quit command causes e\bed\bd to exit. No automatic write of a file
+ is done.
+
+ Q\bQ This command is the same as q\bq, except that no diagnostic results
+ when no w\bw has been given since the last buffer alteration.
+
+ (_\b$,_\b.)r\br _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be
+ The read command reads in the given file after the addressed line.
+ If no file name is given, the remembered file name, if any, is used
+ (see e\be and f\bf commands). The file name is remembered if there was
+ no remembered file name already. Address `0' is legal for r\br and
+ causes the file to be read at the beginning of the buffer. If the
+ read is successful, the number of characters read is typed. `_\b.' is
+ left at the last line read in from the file.
+
+ (_\b1,_\b$)g\bg_\b/_\br_\be_\bg_\bu_\bl_\ba_\br _\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\b/r\bre\bep\bpl\bla\bac\bce\bem\bme\ben\bnt\bt l\bli\bis\bst\bt or,
+ (_\b1,_\b$)g\bg_\b/_\br_\be_\bg_\bu_\bl_\ba_\br _\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\b/r\bre\bep\bpl\bla\bac\bce\bem\bme\ben\bnt\bt l\bli\bis\bst\bt/\b/g\bg
+ The substitute command searches each addressed line for an occur-
+ rence of the specified regular expression. On each line in which a
+ match is found, all matched strings are replaced by the replacement
+ specified, if the global replacement indicator g\bg appears after the
+ command. If the global indicator does not appear, only the first
+ occurrence of the matched string is replaced. It is an error for
+ the substitution to fail on all addressed lines. Any punctuation
+ character may be used instead of `/\b/' to delimit the regular expres-
+ sion and the replacement. `_\b.' is left at the last line substitut-
+ ed. An ampersand `&\b&' appearing in the replacement is replaced by
+ the string matching the regular expression. The special meaning of
+ `&\b&' in this context may be suppressed by preceding it by `\\b\' The
+ characters `\\b\_\bn' where _\bn is a digit, are replaced by the text
+ matched by the regular subexpression enclosed between _\bn`' and `\\b\)\b)'
+ When nested, parenthesized subexpressions are present, _\bn is deter-
+ mined by counting occurrences of `\\b\(\b(' starting from the left.
+ Lines may be split by substituting new-line characters into them.
+ The new-line in the replacement string must be escaped by preceding
+ it by `\\b\' One or two trailing delimiters may be omitted, implying
+ the p\bp suffix. The special form s\bs followed by _\bn_\bo delimiters repeats
+ the most recent substitute command on the addressed lines. The s\bs
+ may be followed by the letters r\br (use the most recent regular ex-
+ pression for the left hand side, instead of the most recent left
+ hand side of a substitute command), p\bp (complement the setting of
+ the p\bp suffix from the previous substitution), or g\bg (complement the
+ setting of the g\bg suffix). These letters may be combined in any or-
+ der.
+
+ (_\b.,_\b.)t\bt_\ba
+ This command acts just like the m\bm command, except that a copy of
+ the addressed lines is placed after address _\ba (which may be 0).
+ `_\b.' is left on the last line of the copy.
+
+ (_\b.,_\b.)u\bu
+ The undo command restores the buffer to it's state before the most
+ recent buffer modifying command. The current line is also re-
+ stored. Buffer modifying commands are a\ba, c\bc, d\bd, g\bg, i\bi, k\bk, m\bm, r\br, s\bs,
+ t\bt, and v\bv. For purposes of undo, g\bg and v\bv are considered to be a sin-
+ gle buffer modifying command. Undo is its own inverse. When e\bed\bd
+ runs out of memory (at about 8000 lines on any 16 bit mini-computer
+ such as the PDP-11) This full undo is not possible, and u\bu can only
+ undo the effect of the most recent substitute on the current line.
+ This restricted undo also applies to editor scripts when e\bed\bd is in-
+ voked with the -\b- option.
+
+ (_\b1,_\b$)v\bv_\b/_\br_\be_\bg_\bu_\bl_\ba_\br _\be_\bx_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\b/c\bco\bom\bmm\bma\ban\bnd\bd l\bli\bis\bst\bt
+ This command is the same as the global command g\bg except that the
+ command list is executed g\bg with `_\b.' initially set to every line
+ _\be_\bx_\bc_\be_\bp_\bt those matching the regular expression.
+
+ (_\b1,_\b$)w\bw _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be
+ The write command writes the addressed lines onto the given file.
+ If the file does not exist, it is created. The file name is remem-
+ bered if there was no remembered file name already. If no file
+ name is given, the remembered file name, if any, is used (see e\be and
+ f\bf commands). `_\b.' is unchanged. If the command is successful, the
+ number of characters written is printed.
+
+ (_\b1,_\b$)W\bW _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be
+ This command is the same as w\bw, except that the addressed lines are
+ appended to the file.
+
+ (_\b1,_\b$)w\bwq\bq _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be
+ This command is the same as w\bw except that afterwards a q\bq command is
+ done, exiting the editor after the file is written.
+
+ x A key string is demanded from the standard input. Later r\br, e\be and w\bw
+ commands will encrypt and decrypt the text with this key by the al-
+ gorithm of crypt(1). An explicitly empty key turns off encryption.
+
+ (_\b._\b+_\b1)z\bz or,
+ (_\b._\b+_\b1)z\bz_\bn
+ This command scrolls through the buffer starting at the addressed
+ line. 22 (or _\bn, if given) lines are printed. The last line print-
+ ed becomes the current line. The value _\bn is sticky, in that it be-
+ comes the default for future z\bz commands.
+
+ (_\b$)=\b= The line number of the addressed line is typed. `_\b.' is unchanged
+ by this command.
+
+ _\b!<shell command>
+ The remainder of the line after the `!\b!' is sent to sh(1) to be in-
+ terpreted as a command. `_\b.' is unchanged.
+
+ (_\b._\b+_\b1,_\b._\b+_\b1)<newline>
+ An address alone on a line causes the addressed line to be printed.
+ A blank line alone is equivalent to _\b._\b+_\b1 it is useful for stepping
+ through text. If two addresses are present with no intervening
+ semicolon, e\bed\bd prints the range of lines. If they are separated by
+ a semicolon, the second line is printed.