
sview | 749
vi
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
split
[count] sp [+num] [filename]
Split the current window and load filename in the new window, or
the same buffer in both windows if no file is specified. Make the
new window count lines high, or, if count is not specified, split the
window into equal parts. With the +n argument, begin editing on
line num. num may also be a pattern of the form /pattern. {vim}
sprevious
[count] spr [+num]
Split the current window and begin editing the previous file from
the command-line argument list in the new window. If count is
specified, edit the count’th previous file. With the +num argu-
ment, begin editing on line num. num may also be a pattern of the
form /pattern. {vim}
stop
st
Suspend the editing session. Same as Ctrl-Z. Use the shell fg
command to resume the session.
substitute
[address] s [/pattern/replacement/] [options] [count]
Replace the first instance of pattern on each of the specified lines
with replacement.Ifpattern and replacement are omitted, repeat
last substitution. count specifies the number of lines on which to
substitute, starting with address. See additional examples in
Chapter 7.
Options
c Prompt for confirmation before each change.
g Substitute all instances of pattern on each line (global).
p Print the last line on which a substitution was made.
Examples
:1,10s/yes/no/g ...