BSD 4_3_Net_2 development
[unix-history] / .ref-8c8a5b54e79564c14fc7a2823a21a8f048449bcf / usr / src / usr.bin / ex / USD.doc / vitut / vi.chars
CommitLineData
bf9a9c79
KB
1.\" Copyright (c) 1980 The Regents of the University of California.
2.\" All rights reserved.
d71b7843 3.\"
ff262511 4.\" %sccs.include.redist.roff%
bf9a9c79 5.\"
ff262511 6.\" @(#)vi.chars 6.3 (Berkeley) %G%
d71b7843
KM
7.\"
8.bd S 3
9..pn 21
10.de iP
11.IP "\fB\\$1\fR" \\$2
12..
13.SH
14Appendix: character functions
15.PP
16This appendix gives the uses the editor makes of each character. The
17characters are presented in their order in the \s-2ASCII\s0 character
18set: Control characters come first, then most special characters, then
19the digits, upper and then lower case characters.
20.PP
21For each character we tell a meaning it has as a command and any meaning it
22has during an insert.
23If it has only meaning as a command, then only this is discussed.
24Section numbers in parentheses indicate where the character is discussed;
25a `f' after the section number means that the character is mentioned
26in a footnote.
27.iP "^@" 15
28Not a command character.
29If typed as the first character of an insertion it is replaced with the
30last text inserted, and the insert terminates. Only 128 characters are
31saved from the last insert; if more characters were inserted the mechanism
32is not available.
33A \fB^@\fR cannot be part of the file due to the editor implementation
34(7.5f).
35.iP "^A" 15
36Unused.
37.iP "^B" 15
38Backward window.
39A count specifies repetition.
40Two lines of continuity are kept if possible (2.1, 6.1, 7.2).
41.iP "^C" 15
42Unused.
43.iP "^D" 15
44As a command, scrolls down a half-window of text.
45A count gives the number of (logical) lines to scroll, and is remembered
46for future \fB^D\fR and \fB^U\fR commands (2.1, 7.2).
47During an insert, backtabs over \fIautoindent\fR white space at the beginning
48of a line (6.6, 7.5); this white space cannot be backspaced over.
49.iP "^E" 15
50Exposes one more line below the current screen in the file, leaving
51the cursor where it is if possible.
52(Version 3 only.)
53.iP "^F" 15
54Forward window. A count specifies repetition.
55Two lines of continuity are kept if possible (2.1, 6.1, 7.2).
56.iP "^G" 15
57Equivalent to \fB:f\fR\s-2CR\s0, printing the current file, whether
58it has been modified, the current line number and the number of lines
59in the file, and the percentage of the way through the file that you
60are.
61.iP "^H (\fR\s-2BS\s0\fP)" 15
62Same as
63.B "left arrow" .
64(See
65.B h ).
66During an insert, eliminates the last input character, backing over it
67but not erasing it; it remains so you can see what you typed if you
68wish to type something only slightly different (3.1, 7.5).
69.iP "^I\ (\fR\s-2TAB\s0\fP)" 15
70Not a command character.
71When inserted it prints as some
72number of spaces.
73When the cursor is at a tab character it rests at the last of the spaces
74which represent the tab.
75The spacing of tabstops is controlled by the \fItabstop\fR option (4.1, 6.6).
76.iP "^J\ (\fR\s-2LF\s0\fP)" 15
77Same as
78.B "down arrow"
79(see
80.B j ).
81.iP "^K" 15
82Unused.
83.iP "^L" 15
84The \s-2ASCII\s0 formfeed character, this causes the screen to be cleared
85and redrawn. This is useful after a transmission error, if characters
86typed by a program other than the editor scramble the screen,
87or after output is stopped by an interrupt (5.4, 7.2f).
88.iP "^M\ (\fR\s-2CR\s0\fP)" 15
89A carriage return advances to the next line, at the first non-white position
90in the line. Given a count, it advances that many lines (2.3).
91During an insert, a \s-2CR\s0 causes the insert to continue onto
92another line (3.1).
93.iP "^N" 15
94Same as
95.B "down arrow"
96(see
97.B j ).
98.iP "^O" 15
99Unused.
100.iP "^P" 15
101Same as
102.B "up arrow"
103(see
104.B k ).
105.iP "^Q" 15
106Not a command character.
107In input mode,
108.B ^Q
109quotes the next character, the same as
110.B ^V ,
111except that some teletype drivers will eat the
112.B ^Q
113so that the editor never sees it.
114.iP "^R" 15
115Redraws the current screen, eliminating logical lines not corresponding
116to physical lines (lines with only a single @ character on them).
117On hardcopy terminals in \fIopen\fR mode, retypes the current line
118(5.4, 7.2, 7.8).
119.iP "^S" 15
120Unused. Some teletype drivers use
121.B ^S
122to suspend output until
123.B ^Q is pressed.
124.iP "^T" 15
125Not a command character.
126During an insert, with \fIautoindent\fR set and at the beginning of the
127line, inserts \fIshiftwidth\fR white space.
128.iP "^U" 15
129Scrolls the screen up, inverting \fB^D\fR which scrolls down. Counts work as
130they do for \fB^D\fR, and the previous scroll amount is common to both.
131On a dumb terminal, \fB^U\fR will often necessitate clearing and redrawing
132the screen further back in the file (2.1, 7.2).
133.iP "^V" 15
134Not a command character.
135In input mode, quotes the next character so that it is possible
136to insert non-printing and special characters into the file (4.2, 7.5).
137.iP "^W" 15
138Not a command character.
139During an insert, backs up as \fBb\fR would in command mode; the deleted
140characters remain on the display (see \fB^H\fR) (7.5).
141.iP "^X" 15
142Unused.
143.iP "^Y" 15
144Exposes one more line above the current screen, leaving the cursor where
145it is if possible. (No mnemonic value for this key; however, it is next
146to \fB^U\fR which scrolls up a bunch.)
147(Version 3 only.)
148.iP "^Z" 15
149If supported by the Unix system,
150stops the editor, exiting to the top level shell.
151Same as \fB:stop\fP\s-2CR\s0.
152Otherwise, unused.
153.iP "^[\ (\fR\s-2ESC\s0\fP)" 15
154Cancels a partially formed command, such as a \fBz\fR when no following
155character has yet been given; terminates inputs on the last line (read
156by commands such as \fB: /\fR and \fB?\fR); ends insertions of new text
157into the buffer.
158If an \s-2ESC\s0 is given when quiescent in command state, the editor
159rings the bell or flashes the screen. You can thus hit \s-2ESC\s0 if
160you don't know what is happening till the editor rings the bell.
161If you don't know if you are in insert mode you can type \s-2ESC\s0\fBa\fR,
162and then material to be input; the material will be inserted correctly
163whether or not you were in insert mode when you started (1.5, 3.1, 7.5).
164.iP "^\e" 15
165Unused.
166.iP "^]" 15
167Searches for the word which is after the cursor as a tag. Equivalent
168to typing \fB:ta\fR, this word, and then a \s-2CR\s0.
169Mnemonically, this command is ``go right to'' (7.3).
170.iP "^\(ua" 15
171Equivalent to \fB:e #\fR\s-2CR\s0, returning to the previous position
172in the last edited file, or editing a file which you specified if you
173got a `No write since last change diagnostic' and do not want to have
174to type the file name again (7.3).
175(You have to do a \fB:w\fR before \fB^\(ua\fR
176will work in this case. If you do not wish to write the file you should
177do \fB:e!\ #\fR\s-2CR\s0 instead.)
178.iP "^_" 15
179Unused.
180Reserved as the command character for the
181Tektronix 4025 and 4027 terminal.
182.iP "\fR\s-2SPACE\s0\fP" 15
183Same as
184.B "right arrow"
185(see
186.B l ).
187.iP "!" 15
188An operator, which processes lines from the buffer with reformatting commands.
189Follow \fB!\fR with the object to be processed, and then the command name
190terminated by \s-2CR\s0. Doubling \fB!\fR and preceding it by a count
191causes count lines to be filtered; otherwise the count
192is passed on to the object after the \fB!\fR. Thus \fB2!}\fR\fIfmt\fR\s-2CR\s0
193reformats the next two paragraphs by running them through the program
194\fIfmt\fR. If you are working on \s-2LISP\s0,
195the command \fB!%\fR\fIgrind\fR\s-2CR\s0,*
196.FS
197*Both
198.I fmt
199and
200.I grind
201are Berkeley programs and may not be present at all installations.
202.FE
203given at the beginning of a
204function, will run the text of the function through the \s-2LISP\s0 grinder
205(6.7, 7.3).
206To read a file or the output of a command into the buffer use \fB:r\fR (7.3).
207To simply execute a command use \fB:!\fR (7.3).
208.tr \a"
209.iP \a 15
210Precedes a named buffer specification. There are named buffers \fB1\-9\fR
211used for saving deleted text and named buffers \fBa\-z\fR into which you can
212place text (4.3, 6.3)
213.tr \a\a
214.iP "#" 15
215The macro character which, when followed by a number, will substitute
216for a function key on terminals without function keys (6.9).
217In input mode,
218if this is your erase character, it will delete the last character
219you typed in input mode, and must be preceded with a \fB\e\fR to insert
220it, since it normally backs over the last input character you gave.
221.iP "$" 15
222Moves to the end of the current line. If you \fB:se list\fR\s-2CR\s0,
223then the end of each line will be shown by printing a \fB$\fR after the
224end of the displayed text in the line. Given a count, advances to the
225count'th following end of line; thus \fB2$\fR advances to the end of the
226following line.
227.iP "%" 15
228Moves to the parenthesis or brace \fB{ }\fR which balances the parenthesis
229or brace at the current cursor position.
230.iP "&" 15
231A synonym for \fB:&\fR\s-2CR\s0, by analogy with the
232.I ex
233.B &
234command.
235.iP "\(aa" 15
236When followed by a \fB\(aa\fR returns to the previous context at the
237beginning of a line. The previous context is set whenever the current
238line is moved in a non-relative way.
239When followed by a letter \fBa\fR\-\fBz\fR, returns to the line which
240was marked with this letter with a \fBm\fR command, at the first non-white
241character in the line. (2.2, 5.3).
242When used with an operator such as \fBd\fR, the operation takes place
243over complete lines; if you use \fB\(ga\fR, the operation takes place
244from the exact marked place to the current cursor position within the
245line.
246.iP "(" 15
247Retreats to the beginning of a
248sentence, or to the beginning of a \s-2LISP\s0 s-expression
249if the \fIlisp\fR option is set.
250A sentence ends at a \fB. !\fR or \fB?\fR which is followed by either
251the end of a line or by two spaces. Any number of closing \fB) ] "\fR
252and \fB\(aa\fR characters may appear after the \fB. !\fR or \fB?\fR,
253and before the spaces or end of line. Sentences also begin
254at paragraph and section boundaries
255(see \fB{\fR and \fB[[\fR below).
256A count advances that many sentences (4.2, 6.8).
257.iP ")" 15
258Advances to the beginning of a sentence.
259A count repeats the effect.
260See \fB(\fR above for the definition of a sentence (4.2, 6.8).
261.iP "*" 15
262Unused.
263.iP "+" 15
264Same as \s-2CR\s0 when used as a command.
265.iP "," 15
266Reverse of the last \fBf F t\fR or \fBT\fR command, looking the other way
267in the current line. Especially useful after hitting too many \fB;\fR
268characters. A count repeats the search.
269.iP "\-" 15
270Retreats to the previous line at the first non-white character.
271This is the inverse of \fB+\fR and \s-2RETURN\s0.
272If the line moved to is not on the screen, the screen is scrolled, or
273cleared and redrawn if this is not possible.
274If a large amount of scrolling would be required the screen is also cleared
275and redrawn, with the current line at the center (2.3).
276.iP "\&." 15
277Repeats the last command which changed the buffer. Especially useful
278when deleting words or lines; you can delete some words/lines and then
279hit \fB.\fR to delete more and more words/lines.
280Given a count, it passes it on to the command being repeated. Thus after
281a \fB2dw\fR, \fB3.\fR deletes three words (3.3, 6.3, 7.2, 7.4).
282.iP "/" 15
283Reads a string from the last line on the screen, and scans forward for
284the next occurrence of this string. The normal input editing sequences may
285be used during the input on the bottom line; an returns to command state
286without ever searching.
287The search begins when you hit \s-2CR\s0 to terminate the pattern;
288the cursor moves to the beginning of the last line to indicate that the search
289is in progress; the search may then
290be terminated with a \s-2DEL\s0 or \s-2RUB\s0, or by backspacing when
291at the beginning of the bottom line, returning the cursor to
292its initial position.
293Searches normally wrap end-around to find a string
294anywhere in the buffer.
295.IP
296When used with an operator the enclosed region is normally affected.
297By mentioning an
298offset from the line matched by the pattern you can force whole lines
299to be affected. To do this give a pattern with a closing
300a closing \fB/\fR and then an offset \fB+\fR\fIn\fR or \fB\-\fR\fIn\fR.
301.IP
302To include the character \fB/\fR in the search string, you must escape
303it with a preceding \fB\e\fR.
304A \fB\(ua\fR at the beginning of the pattern forces the match to occur
305at the beginning of a line only; this speeds the search. A \fB$\fR at
306the end of the pattern forces the match to occur at the end of a line
307only.
308More extended pattern matching is available, see section 7.4;
309unless you set \fBnomagic\fR in your \fI\&.exrc\fR file you will have
310to preceed the characters \fB. [ *\fR and \fB~\fR in the search pattern
311with a \fB\e\fR to get them to work as you would naively expect (1.5, 2,2,
3126.1, 7.2, 7.4).
313.iP "0" 15
314Moves to the first character on the current line.
315Also used, in forming numbers, after an initial \fB1\fR\-\fB9\fR.
316.iP "1\-9" 15
317Used to form numeric arguments to commands (2.3, 7.2).
318.iP ":" 15
319A prefix to a set of commands for file and option manipulation and escapes
320to the system. Input is given on the bottom line and terminated with
321an \s-2CR\s0, and the command then executed. You can return to where
322you were by hitting \s-2DEL\s0 or \s-2RUB\s0 if you hit \fB:\fR accidentally
323(see primarily 6.2 and 7.3).
324.iP ";" 15
325Repeats the last single character find which used \fBf F t\fR or \fBT\fR.
326A count iterates the basic scan (4.1).
327.iP "<" 15
328An operator which shifts lines left one \fIshiftwidth\fR, normally 8
329spaces. Like all operators, affects lines when repeated, as in
330\fB<<\fR. Counts are passed through to the basic object, thus \fB3<<\fR
331shifts three lines (6.6, 7.2).
332.iP "=" 15
333Reindents line for \s-2LISP\s0, as though they were typed in with \fIlisp\fR
334and \fIautoindent\fR set (6.8).
335.iP ">" 15
336An operator which shifts lines right one \fIshiftwidth\fR, normally 8
337spaces. Affects lines when repeated as in \fB>>\fR. Counts repeat the
338basic object (6.6, 7.2).
339.iP "?" 15
340Scans backwards, the opposite of \fB/\fR. See the \fB/\fR description
341above for details on scanning (2.2, 6.1, 7.4).
342.iP "@" 15
343A macro character (6.9). If this is your kill character, you must escape it with a \e
344to type it in during input mode, as it normally backs over the input you
345have given on the current line (3.1, 3.4, 7.5).
346.iP "A" 15
347Appends at the end of line, a synonym for \fB$a\fR (7.2).
348.iP "B" 15
349Backs up a word, where words are composed of non-blank sequences, placing
350the cursor at the beginning of the word. A count repeats the effect
351(2.4).
352.iP "C" 15
353Changes the rest of the text on the current line; a synonym for \fBc$\fR.
354.iP "D" 15
355Deletes the rest of the text on the current line; a synonym for \fBd$\fR.
356.iP "E" 15
357Moves forward to the end of a word, defined as blanks and non-blanks,
358like \fBB\fR and \fBW\fR. A count repeats the effect.
359.iP "F" 15
360Finds a single following character, backwards in the current line.
361A count repeats this search that many times (4.1).
362.iP "G" 15
363Goes to the line number given as preceding argument, or the end of the
364file if no preceding count is given. The screen is redrawn with the
365new current line in the center if necessary (7.2).
366.iP "H" 15
367.B "Home arrow" .
368Homes the cursor to the top line on the screen. If a count is given,
369then the cursor is moved to the count'th line on the screen.
370In any case the cursor is moved to the first non-white character on the
371line. If used as the target of an operator, full lines are affected
372(2.3, 3.2).
373.iP "I" 15
374Inserts at the beginning of a line; a synonym for \fB\(uai\fR.
375.iP "J" 15
376Joins together lines, supplying appropriate white space: one space between
377words, two spaces after a \fB.\fR, and no spaces at all if the first
378character of the joined on line is \fB)\fR. A count causes that many
379lines to be joined rather than the default two (6.5, 7.1f).
380.iP "K" 15
381Unused.
382.iP "L" 15
383Moves the cursor to the first non-white character of the last line on
384the screen. With a count, to the first non-white of the count'th line
385from the bottom. Operators affect whole lines when used with \fBL\fR
386(2.3).
387.iP "M" 15
388Moves the cursor to the middle line on the screen, at the first non-white
389position on the line (2.3).
390.iP "N" 15
391Scans for the next match of the last pattern given to
392\fB/\fR or \fB?\fR, but in the reverse direction; this is the reverse
393of \fBn\fR.
394.iP "O" 15
395Opens a new line above the current line and inputs text there up to an
396\s-2ESC\s0. A count can be used on dumb terminals to specify a number
397of lines to be opened; this is generally obsolete, as the \fIslowopen\fR
398option works better (3.1).
399.iP "P" 15
400Puts the last deleted text back before/above the cursor. The text goes
401back as whole lines above the cursor if it was deleted as whole lines.
402Otherwise the text is inserted between the characters before and at the
403cursor. May be preceded by a named buffer specification \fB"\fR\fIx\fR
404to retrieve the contents of the buffer; buffers \fB1\fR\-\fB9\fR contain
405deleted material, buffers \fBa\fR\-\fBz\fR are available for general
406use (6.3).
407.iP "Q" 15
408Quits from \fIvi\fR to \fIex\fR command mode. In this mode, whole lines
409form commands, ending with a \s-2RETURN\s0. You can give all the \fB:\fR
410commands; the editor supplies the \fB:\fR as a prompt (7.7).
411.iP "R" 15
412Replaces characters on the screen with characters you type (overlay fashion).
413Terminates with an \s-2ESC\s0.
414.iP "S" 15
415Changes whole lines, a synonym for \fBcc\fR. A count substitutes for
416that many lines. The lines are saved in the numeric buffers, and erased
417on the screen before the substitution begins.
418.iP "T" 15
419Takes a single following character, locates the character before the
420cursor in the current line, and places the cursor just after that character.
421A count repeats the effect. Most useful with operators such as \fBd\fR
422(4.1).
423.iP "U" 15
424Restores the current line to its state before you started changing it
425(3.5).
426.iP "V" 15
427Unused.
428.iP "W" 15
429Moves forward to the beginning of a word in the current line,
430where words are defined as sequences of blank/non-blank characters.
431A count repeats the effect (2.4).
432.iP "X" 15
433Deletes the character before the cursor. A count repeats the effect,
434but only characters on the current line are deleted.
435.iP "Y" 15
436Yanks a copy of the current line into the unnamed buffer, to be put back
437by a later \fBp\fR or \fBP\fR; a very useful synonym for \fByy\fR.
438A count yanks that many lines. May be preceded by a buffer name to put
439lines in that buffer (7.4).
440.iP "ZZ" 15
441Exits the editor.
442(Same as \fB:x\fP\s-2CR\s0.)
443If any changes have been made, the buffer is written out to the current file.
444Then the editor quits.
445.iP "[[" 15
446Backs up to the previous section boundary. A section begins at each
447macro in the \fIsections\fR option,
448normally a `.NH' or `.SH' and also at lines which which start
449with a formfeed \fB^L\fR. Lines beginning with \fB{\fR also stop \fB[[\fR;
450this makes it useful for looking backwards, a function at a time, in C
451programs. If the option \fIlisp\fR is set, stops at each \fB(\fR at the
452beginning of a line, and is thus useful for moving backwards at the top
453level \s-2LISP\s0 objects. (4.2, 6.1, 6.6, 7.2).
454.iP "\e" 15
455Unused.
456.iP "]]" 15
457Forward to a section boundary, see \fB[[\fR for a definition (4.2, 6.1,
4586.6, 7.2).
459.iP "\(ua" 15
460Moves to the first non-white position on the current line (4.4).
461.iP "_" 15
462Unused.
463.iP "\(ga" 15
464When followed by a \fB\(ga\fR returns to the previous context.
465The previous context is set whenever the current
466line is moved in a non-relative way.
467When followed by a letter \fBa\fR\-\fBz\fR, returns to the position which
468was marked with this letter with a \fBm\fR command.
469When used with an operator such as \fBd\fR, the operation takes place
470from the exact marked place to the current position within the line;
471if you use \fB\(aa\fR, the operation takes place over complete lines
472(2.2, 5.3).
473.iP "a" 15
474Appends arbitrary text after the current cursor position; the insert
475can continue onto multiple lines by using \s-2RETURN\s0 within the insert.
476A count causes the inserted text to be replicated, but only if the inserted
477text is all on one line.
478The insertion terminates with an \s-2ESC\s0 (3.1, 7.2).
479.iP "b" 15
480Backs up to the beginning of a word in the current line. A word is a
481sequence of alphanumerics, or a sequence of special characters.
482A count repeats the effect (2.4).
483.iP "c" 15
484An operator which changes the following object, replacing it with the
485following input text up to an \s-2ESC\s0. If more than part of a single
486line is affected, the text which is changed away is saved in the numeric named
487buffers. If only part of the current line is affected, then the last
488character to be changed away is marked with a \fB$\fR.
489A count causes that many objects to be affected, thus both
490\fB3c)\fR and \fBc3)\fR change the following three sentences (7.4).
491.iP "d" 15
492An operator which deletes the following object. If more than part of
493a line is affected, the text is saved in the numeric buffers.
494A count causes that many objects to be affected; thus \fB3dw\fR is the
495same as \fBd3w\fR (3.3, 3.4, 4.1, 7.4).
496.iP "e" 15
497Advances to the end of the next word, defined as for \fBb\fR and \fBw\fR.
498A count repeats the effect (2.4, 3.1).
499.iP "f" 15
500Finds the first instance of the next character following the cursor on
501the current line. A count repeats the find (4.1).
502.iP "g" 15
503Unused.
504.sp
505Arrow keys
506.B h ,
507.B j ,
508.B k ,
509.B l ,
510and
511.B H .
512.iP "h" 15
513.B "Left arrow" .
514Moves the cursor one character to the left.
515Like the other arrow keys, either
516.B h ,
517the
518.B "left arrow"
519key, or one of the synonyms (\fB^H\fP) has the same effect.
520On v2 editors, arrow keys on certain kinds of terminals
521(those which send escape sequences, such as vt52, c100, or hp)
522cannot be used.
523A count repeats the effect (3.1, 7.5).
524.iP "i" 15
525Inserts text before the cursor, otherwise like \fBa\fR (7.2).
526.iP "j" 15
527.B "Down arrow" .
528Moves the cursor one line down in the same column.
529If the position does not exist,
530.I vi
531comes as close as possible to the same column.
532Synonyms include
533.B ^J
534(linefeed) and
535.B ^N .
536.iP "k" 15
537.B "Up arrow" .
538Moves the cursor one line up.
539.B ^P
540is a synonym.
541.iP "l" 15
542.B "Right arrow" .
543Moves the cursor one character to the right.
544\s-2SPACE\s0 is a synonym.
545.iP "m" 15
546Marks the current position of the cursor in the mark register which is
547specified by the next character \fBa\fR\-\fBz\fR. Return to this position
548or use with an operator using \fB\(ga\fR or \fB\(aa\fR (5.3).
549.iP "n" 15
550Repeats the last \fB/\fR or \fB?\fR scanning commands (2.2).
551.iP "o" 15
552Opens new lines below the current line; otherwise like \fBO\fR (3.1).
553.iP "p" 15
554Puts text after/below the cursor; otherwise like \fBP\fR (6.3).
555.iP "q" 15
556Unused.
557.iP "r" 15
558Replaces the single character at the cursor with a single character you
559type. The new character may be a \s-2RETURN\s0; this is the easiest
560way to split lines. A count replaces each of the following count characters
561with the single character given; see \fBR\fR above which is the more
562usually useful iteration of \fBr\fR (3.2).
563.iP "s" 15
564Changes the single character under the cursor to the text which follows
565up to an \s-2ESC\s0; given a count, that many characters from the current
566line are changed. The last character to be changed is marked with \fB$\fR
567as in \fBc\fR (3.2).
568.iP "t" 15
569Advances the cursor upto the character before the next character typed.
570Most useful with operators such as \fBd\fR and \fBc\fR to delete the
571characters up to a following character. You can use \fB.\fR to delete
572more if this doesn't delete enough the first time (4.1).
573.iP "u" 15
574Undoes the last change made to the current buffer. If repeated, will
575alternate between these two states, thus is its own inverse. When used
576after an insert which inserted text on more than one line, the lines are
577saved in the numeric named buffers (3.5).
578.iP "v" 15
579Unused.
580.iP "w" 15
581Advances to the beginning of the next word, as defined by \fBb\fR (2.4).
582.iP "x" 15
583Deletes the single character under the cursor. With a count deletes
584deletes that many characters forward from the cursor position, but only
585on the current line (6.5).
586.iP "y" 15
587An operator, yanks the following object into the unnamed temporary buffer.
588If preceded by a named buffer specification, \fB"\fR\fIx\fR, the text
589is placed in that buffer also. Text can be recovered by a later \fBp\fR
590or \fBP\fR (7.4).
591.iP "z" 15
592Redraws the screen with the current line placed as specified by the following
593character: \s-2RETURN\s0 specifies the top of the screen, \fB.\fR the
594center of the screen, and \fB\-\fR at the bottom of the screen.
595A count may be given after the \fBz\fR and before the following character
596to specify the new screen size for the redraw.
597A count before the \fBz\fR gives the number of the line to place in the
598center of the screen instead of the default current line. (5.4)
599.iP "{" 15
600Retreats to the beginning of the beginning of the preceding paragraph.
601A paragraph begins at each macro in the \fIparagraphs\fR option, normally
602`.IP', `.LP', `.PP', `.QP' and `.bp'.
603A paragraph also begins after a completely
604empty line, and at each section boundary (see \fB[[\fR above) (4.2, 6.8,
6057.6).
606.iP "|" 15
607Places the cursor on the character in the column specified
608by the count (7.1, 7.2).
609.iP "}" 15
610Advances to the beginning of the next paragraph. See \fB{\fR for the
611definition of paragraph (4.2, 6.8, 7.6).
612.iP "~" 15
613Unused.
614.iP "^?\ (\s-2\fRDEL\fP\s0)" 15
615Interrupts the editor, returning it to command accepting state (1.5,
6167.5)
617.bp
618\&.