
rewind | 747
vi
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
put
[address] pu [char]
Restore previously deleted or yanked lines from named register
specified by char, to the line specified by address.Ifchar is not
specified, the last deleted or yanked text is restored.
qall
qa[!]
Close all windows and terminate current editing session. Use ! to
discard changes made since the last save. {vim}
quit
q[!]
Terminate current editing session. Use ! to discard changes made
since the last save. If the editing session includes additional files in
the argument list that were never accessed, quit by typing q! or by
typing q twice. vim only closes the editing window if there are still
other windows open on the screen.
read
[address] r filename
Copy the text of filename after the line specified by address.Iffile-
name is not specified, the current filename is used.
Example
:0r $HOME/data Read file in at top of current file
read
[address] r !command
Read the output of shell command into the text after the line speci-
fied by address.
Example
:$r !spell % Place results of spell checking at end of file
recover
rec [file]
Recover file from the system save area.
redo
red
Restore last undone change. Same as Ctrl-R. {vim}
resize
res [[±]num]
Resize current window to be num lines high. If + or - is specified,
increase or decrease the current window height by num lines.
{vim} ...