Lines Matching +full:in +full:- +full:line

4 .\" Redistribution and use in source and binary forms, with or without
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 .EH 'USD:12-%''Ex Reference Manual'
35 .OH 'Ex Reference Manual''USD:12-%'
71 a line oriented text editor, which supports both command and display
77 are described in
91 The financial support of an \s-2IBM\s0 Graduate Fellowship and the National
92 Science Foundation under grants MCS74-07644-A03 and MCS78-07291 is gratefully
108 determines the terminal type from the \s-2TERM\s0 variable in the environment.
109 It there is a \s-2TERMCAP\s0 variable in the environment, and the type
110 of the terminal described there matches the \s-2TERM\s0 variable,
112 is used. Also if the \s-2TERMCAP\s0 variable contains a pathname (beginning
115 If there is a variable \s-2EXINIT\s0 in the environment, then the editor
116 will execute the commands in that variable,
119 in your \s-2HOME\s0 directory
124 Option setting commands placed in
125 \s-2EXINIT\s0 or
136 \fBex\fP [ \fB\-\fP ] [ \fB\-v\fP ] [ \fB\-t\fP \fItag\fP ] [ \fB\-r\fP ] [ \fB\-l\fP ] [ \fB\-w\fP…
143 .B \-
144 command line option
145 option suppresses all interactive-user feedback
146 and is useful in processing editor scripts in command files.
148 .B \-v
154 .B \-t
161 .B \-r
162 option is used in recovering after an editor or system crash,
167 .B \-l
168 option sets up for editing \s-2LISP\s0, setting the
174 .B \-w
177 and is useful on dialups to start in small windows.
179 .B \-x
189 .B \-R
201 line of the first file initially. Other useful commands here are scanning
202 patterns of the form ``/pat'' or line numbers, e.g. ``+100'' starting
203 at line 100.
211 whose name is recorded in the
215 performs all editing actions in a buffer
262 the character `%' in filenames is replaced by the
280 If more than one file is given on the command line,
282 The remaining arguments are placed with the first file in the
287 The next file in the argument list may be edited with the
332 .B \-R
333 command line option,
336 command line invocation,
342 It is possible to write, even while in read only mode, by indicating
345 even while in read only mode.
353 (optionally) rings the terminal bell and, in any case, prints an error
366 (in the first case) or the system (after it reboots in the second) will
367 attempt to preserve the buffer. The next time you log in you should be
371 .B \-r
377 \fBex \-r\fP\fI resume\fP
386 \fBex\fP \-\fBr\fP
390 the file will not appear in the list,
398 mode. Commands are entered in command mode when a `:' prompt is
399 present, and are executed each time a complete line is sent. In
403 gathers input lines and places them in the file. The
409 No prompt is printed when you are in text input mode.
410 This mode is left by typing a `.' alone at the beginning of a line, and
425 modes allow local editing operations to be performed on the text in the
428 command displays one line at a time on any terminal while
430 works on \s-2CRT\s0 terminals with random positioning cursors, using the
432 These modes are described (only) in
439 The ambiguity of abbreviations is resolved in favor of the more commonly
452 Most commands accept prefix addresses specifying the lines in the file
457 specifying the number of lines to be involved in the command.\(dg
461 Thus the command ``10p'' will print the tenth line in the buffer while
463 starting with the current line.
468 \(dd Examples would be option names in a
471 a file name in an
474 a regular expression in a
496 except in the single special case `dp'.
502 normally prints the new current line after each change, `p' is rarely necessary.
503 Any number of `+' or `\-' characters may also be given with these flags.
504 If they appear, the specified offset is applied to the current line
513 Any command line beginning with " is ignored.
515 of commands, except in cases where they could be confused as part
518 Multiple commands per line
520 More than one command may be placed on a line by separating each pair
527 must be the last command on a line, as they are not terminated by a `|'.
542 you will be informed if the net change in the number of lines
549 The current line.
550 Most commands leave the current line as the last line which they affect.
551 The default address for most commands is the current line,
554 The \fIn\fRth line in the editor's buffer, lines being numbered
557 The last line in the buffer.
560 .IP \fI+n\fR\ \fI\-n\fR 20
561 An offset relative to the current buffer line.\(dg
565 if the current line is line 100 they all address line 103.
568 Scan forward and backward respectively for a line containing \fIpat\fR, a
571 If all that is desired is to print the next line containing \fIpat\fR, then
577 using the last regular expression used in a scan; after a substitute
581 Before each non-relative motion of the current line `\fB.\fP',
582 the previous current line is marked with a tag, subsequently referred to as
596 Such address lists are evaluated left-to-right.
597 When addresses are separated by `;' the current line `\fB.\fR'
602 If the command takes two addresses, the first addressed line must
603 precede the second in the buffer.\(dg
605 \(dg Null address specifications are permitted in a list of addresses,
606 the default in this case is the current line `.';
620 the next line in the file. For sanity with use from within
627 default addresses are shown in parentheses,
636 When in input mode in visual, if
647 Reads the input text and places it after the specified line.
649 addresses the last line input or the
650 specified line if no lines were input.
688 The current line becomes the last line input;
713 edited so that write restrictions on pre-existing files apply.
723 The current line
725 addresses the last line of the copy.
734 The line after the last line deleted becomes the current line;
736 the new last line becomes the current line.
740 then the specified lines are saved in that buffer,
771 If there were any non-\s-2ASCII\s0 characters
772 in the file they are stripped of their non-\s-2ASCII\s0
774 and any null characters in the file are discarded.
777 If the last line of the input file is missing the trailing
779 This command leaves the current line `\fB.\fR' at the last line read.\(dd
785 the current line is initially the first line of the file.
796 Causes the editor to begin at line
798 rather than at the last line;
809 the current line,
810 the number of lines in the buffer,
811 and the percentage of the way through the buffer of the current line.*
813 * In the rare case that the current file is `[Not edited]' this is
814 noted also; in this case you have to use the form \fBw!\fR to write to
828 First marks each line among those specified which matches
831 set to each marked line.
834 input line and may continue to multiple lines by ending all but the
835 last such line with a `\e'.
838 (and possibly the trailing \fB/\fR delimiter) is omitted, each line matching
847 last line of the command list.
851 commands are permitted in the command list and take input from the terminal.
855 command itself may not appear in
887 The variant form of \fIglobal\fR runs \fIcmds\fR at each line not matching
896 Places the given text before the specified line.
897 The current line is left at the last line input;
898 if there were none input it is left at the line before the addressed line.
901 only in the placement of text.
919 together on one line.
921 one blank character, two if there was a `\fB.\fR' at the end of the line,
923 If there is already white space at the end of the line,
924 then the white space at the start of the next line will be discarded.
930 with no white space processing; the characters in the lines are simply
943 Prints the specified lines in a more unambiguous way:
945 and the end of each line is marked with a trailing `$'.
946 The current line is left at the last line printed.
952 command is used to define macros for use in
958 is typed in
967 Gives the specified line mark
973 The addressing form `\'x' then addresses this line.
974 The current line is not affected by this command.
982 The first of the moved lines becomes the current line.
986 The next file from the command line argument list is edited.
1002 the first file in the new list is then edited.
1009 Prints each specified line preceded by its buffer line
1011 The current line is left at the last line printed.
1018 Enters intraline editing \fIopen\fR mode at each addressed line.
1033 This command is for use only in emergencies when a
1035 command has resulted in an error and you don't know how to save your work.
1043 with non-printing characters printed as control characters `^\fIx\fR\|';
1045 The current line is left at the last line printed.
1095 will also issue a diagnostic if there are more files in the argument
1108 Places a copy of the text of the given file in the
1109 editing buffer after the specified line.
1113 The current file name is not changed unless there is none in which
1135 the current line is the last line read.\(dd
1141 the current line is set to the first line read rather than the last.
1148 into the buffer after the specified line.
1175 The argument list is rewound, and the first file in the list is edited.
1200 they are interpreted left-to-right.
1215 On each specified line, the first instance of pattern
1226 then before each substitution the line to be substituted
1233 the current line is the last line substituted.
1236 new-line characters into them.
1237 The newline in
1240 Other metacharacters available in
1280 switching to a different line in the current file where it is defined,
1299 to minor changes in the file. Such scans are always performed as if
1303 The tag names in the tags file must be sorted alphabetically.
1313 Reverses the changes made in the buffer by the last
1333 always marks the previous value of the current line `\fB.\fR'
1337 the current line is the first line restored
1338 or the line before the first line deleted if no lines were restored.
1344 the current line regains it's pre-command value after an
1360 line which does not match \fIpat\fR.
1369 Enters visual mode at the specified line.
1371 is optional and may be `\-' , `\(ua' or `\fB.\fR'
1372 as in the
1374 command to specify the placement of the specified line on the screen.
1377 is omitted, the specified line is placed as the first on the screen.
1412 name; the current line is never changed.
1451 Then, in any case, quits.
1455 Places the specified lines in the named
1468 Prints a window of text with the specified line at the top.
1469 If \fItype\fR is `\-' the line is placed at the bottom; a `\fB.\fR' causes
1470 the line to be placed in the center.*
1473 On a \s-2CRT\s0 the screen is cleared before display begins unless a
1475 The current line is left at the last line printed.
1477 * Forms `z=' and `z\(ua' also exist; `z=' places the current line in the
1478 center, surrounds it with lines of `\-' characters and leaves the current
1479 line at this line. The form `z\(ua' prints the window before `z\-'
1480 would. The characters `+', `\(ua' and `\-' may be repeated for cumulative
1489 The remainder of the line after the `!' character is sent to a shell
1494 `%' and `#' are expanded as in filenames and the character
1496 Thus, in particular,
1498 If any such expansion is performed, the expanded line will be echoed.
1499 The current line is unchanged by this command.
1515 Prints the line number of the
1516 addressed line.
1517 The current line is unchanged.
1530 no non-white characters are discarded in a left-shift.
1531 The current line becomes the last line which changed due to the
1537 An end-of-file from a terminal input scrolls through the file.
1547 A blank line prints the next line in the file.
1570 the previous regular expression used in a
1582 are constructed in one of two ways depending on the setting of
1618 special characters in this case will be `\(ua' at the beginning
1635 The characters `\(ua' at the beginning of a line,
1636 `$' at the end of line,
1642 forces the match to succeed only at the beginning of a line.
1645 succeed only at the end of the line.
1648 the new-line character.
1652 that is, either at the beginning of a line, or just before
1657 or ``word'', i.e. either the end of the line or before character
1660 Matches any (single) character in the class defined by
1662 Most characters in
1665 A pair of characters separated by `\-' in
1668 bounds, thus `[a\-z]' as a regular expression matches
1669 any (single) lower-case letter.
1674 thus `[\(uaa\-z]' matches anything but a lower-case letter (and of course a
1677 `\(ua', `[', or `\-' in
1692 The character `\s+2~\s0' may be used in a regular expression,
1698 `\e(' and `\e)' with side effects in the
1711 The metacharacter `~' stands, in the replacement pattern,
1714 Other metasequences possible in the replacement pattern
1717 by the \fIn\fR-th regular subexpression enclosed between
1723 The sequences `\eu' and `\el' cause the immediately following character in
1724 the replacement to be converted to upper- or lower-case respectively
1748 or when a new line is
1762 looks at the line being appended after,
1763 the first line changed
1764 or the line inserted before and calculates the amount of white space
1765 at the start of the line.
1768 If the user then types lines of text in,
1770 If more white space is typed at the beginning of a line,
1771 the following line will start aligned with the first non-white character
1772 of the previous line.
1781 except by sending an end-of-file with a \fB^D\fR.
1783 Specially processed in this mode is a line with no characters added
1784 to it, which turns into a completely blank line (the white
1788 Also specially processed in this mode are lines beginning with
1790 This causes the input to be repositioned at the beginning of the line,
1791 but retaining the previous indent for the next line.
1797 doesn't happen in
1803 Causes the current line to be printed after each
1816 is suppressed in globals,
1817 and only applies to the last of many commands on a line.
1862 Causes all control characters except tab, newline and form-feed
1871 Specifies the directory in which
1874 If this directory in not
1887 makes the substitution be as in the
1896 * Bell ringing in
1903 If possible the editor always places the error message in a standout mode of the
1913 All upper case characters in the text are mapped to lower case in regular
1915 In addition, all upper case characters in regular expressions are mapped
1916 to lower case except in character class specifications.
1922 code, and the \fB( ) { } [[\fR and \fB]]\fR commands in
1931 showing tabs and end-of-lines as in the
1958 while you are in visual mode, if
1968 To be recognized as a command line, the line must have the string
1972 preceeded by a tab or a space. This string may be anywhere in the
1973 line and anything after the
1982 line numbers.
1983 In addition each input line will be prompted for by supplying the line number
2002 when printing more than one (logical) line of output,
2008 Specifies the paragraphs for the \fB{\fR and \fB}\fR operations in
2012 The pairs of characters in the option's value are the names
2022 terminal on a dumb terminal (e.g. during insertions in
2065 the net change in the number of lines in the buffer is
2073 Determines the number of logical lines scrolled when an end-of-file
2074 is received from a terminal input in command mode,
2087 The pairs of characters in the options's value are the names
2096 The default is taken from SHELL in the environment, if present.
2101 used in reverse tabbing with \fB^D\fR when using
2119 Affects the display algorithm used in
2122 throughput when the terminal in use is both slow and unintelligent.
2129 The editor expands tabs in the input file to be on
2143 A requested tag is searched for in the specified files, sequentially.
2146 are searched for in the current directory and in /usr/lib
2164 The number of lines in a text window in the
2169 and the full screen (minus one line) at higher speeds.
2182 Searches using the regular expressions in addressing
2187 Defines a margin for automatic wrapover of text during input in
2210 and created the framework that users see in the present editor.