appb_01.htm:behavior.

appb_01.htm:deletes three lines beginning with the current line; 3d deletes line 3.

appb_01.htm:current file; # stands for previous file.

appb_02.htm:list all current abbreviations.

appb_02.htm: appb_02.htm:within brackets ([ ]).

appb_02.htm:during input of text.

appb_02.htm:is a synonym for copy.

appb_02.htm:Uppercase names append text to the buffer.

appb_02.htm:/pattern.

appb_02.htm:status of the file.

appb_02.htm:containing pattern.

appb_02.htm:during input of text.

appb_02.htm:Add a ! to prevent whitespace adjustment.

appb_02.htm:k is equivalent to mark.

appb_02.htm:ends of lines display as $.

appb_02.htm:or one or more characters.

appb_02.htm:later to the line with 'x.

appb_02.htm:

Move the lines specified by address to the destination address.

appb_02.htm:of the form /pattern.

appb_02.htm:Use # as an alternate abbreviation for number.

appb_02.htm:matching pattern. Exit open mode with Q.

appb_02.htm:

Save the current editor buffer as though the system was about to crash.

appb_02.htm:P is another abbreviation.

appb_02.htm:yanked text is restored.

appb_02.htm:quit by typing q! or by typing q twice.

appb_02.htm:is not specified, the current filename is used.

appb_02.htm:specified by address.

appb_02.htm:

Recover filename from system save area.

appb_02.htm:since the last change.

appb_02.htm:displays the value of option.

appb_02.htm:

Create a new shell. Resume editing when the shell is terminated.

appb_02.htm:

Read and execute ex commands from filename.

appb_02.htm:See Chapter 6, for full details.

appb_02.htm:t is equivalent to copy.

appb_02.htm:

Switch the focus of editing to tag.

appb_02.htm:

Remove word from the list of abbreviations.

appb_02.htm:

Reverse the changes made by the last editing command.

appb_02.htm:

Remove char from the list of macros.

appb_02.htm:v is equivalent to g!.

appb_02.htm:Each clone prints something appropriate.

appb_02.htm:count specifies an initial window size.

appb_02.htm:

Begin editing on filename in visual mode.

appb_02.htm:contents of filename.

appb_02.htm:

Write lines specified by address to command.

appb_02.htm:The file is always written.

appb_02.htm:then quit.

appb_02.htm:char, or if no char is specified place in general buffer.

appb_02.htm:
+

Place specified line at the top of the window (default).

appb_02.htm:
-

Place specified line at the bottom of the window.

appb_02.htm:
.

Place specified line in the center of the window.

appb_02.htm:
^

Print the previous window.

appb_02.htm:current line at this line.

appb_02.htm:

count specifies the number of lines to be displayed.

appb_02.htm:the command.)

appb_02.htm:Default is line number of last line.

appb_02.htm:as :>.

appb_02.htm:

Print the lines specified in address.

appb_02.htm:

Print the next line in the file.

appb_02.htm:

Repeat the previous substitute command.

appb_02.htm:See Section 6.3.4 in Chapter 6 for details.

appd_02.htm:

appd_02.htm:

appd_02.htm:

appd_02.htm:

appe_02.htm:

docs
Documentation on vi, also some comp.editors postings.
appe_02.htm:

macros
vi macros.
appe_02.htm:

comp.editors
Various materials posted to comp.editors.
appe_02.htm:Take things from here with caution, as much of it is out of date. appe_02.htm:EXINIT environment variable. appe_02.htm:draw the disks. For fun, we have reprinted it in the sidebar. appe_02.htm:It's rather amazing to watch it execute the programs. ch01_01.htm:
i
insert

ch01_01.htm:
cw
change word

ch02_02.htm:
h
left, one space

ch02_02.htm:
j
down, one line

ch02_02.htm:
k
up, one line

ch02_02.htm:
l
right, one space

ch02_02.htm:Move to beginning of line.

ch02_02.htm:Move to end of line.

ch02_03.htm:

ch02_03.htm:
c2b
back two words

ch02_03.htm:

ch02_03.htm:
c0
to the beginning of line.

ch02_04.htm:
A
Append text to end of current line.

ch02_04.htm:
I
Insert text at beginning of line.

ch02_04.htm:
o
Open blank line below cursor for text.

ch02_04.htm:
O
Open blank line above cursor for text.

ch02_04.htm:
s
Delete character at cursor and substitute text.

ch02_04.htm:
S
Delete line and substitute text.

ch02_04.htm:characters.

ch03_01.htm:
Scroll forward one screen.

ch03_01.htm:
Scroll backward one screen.

ch03_01.htm:
Scroll forward half screen (down).

ch03_01.htm:
Scroll backward half screen (up).

ch03_01.htm:

ch03_01.htm:

ch03_01.htm:

ch03_01.htm:
nH
Move to n lines below top line.

ch03_01.htm:
nL
Move to n lines above last line.

ch03_01.htm:

ch03_01.htm:

ch03_02.htm:

ch03_02.htm:

ch03_02.htm:

ch03_02.htm:

ch03_02.htm:

ch03_02.htm:

ch03_02.htm:

ch03_02.htm:
]]
Move to beginning of next section.

ch04_02.htm:

ch04_02.htm:

ch04_02.htm:

ch04_03.htm:
Delete from cursor to end of current sentence and save in buffer z.

ch04_03.htm:
Move two sentences further on.

ch04_03.htm:had accumulated in it.

ch04_04.htm:

ch04_04.htm:

ch04_04.htm:

ch04_04.htm:

ch04_04.htm:

ch05_02.htm:
:=
Print the total number of lines.

ch05_02.htm:
:.=
Print the line number of the current line.

ch05_02.htm:
:/pattern/=
Print the line number of the first line that matches pattern.

ch05_02.htm:
:.,$d
Delete from current line to end of file.

ch05_02.htm:
:20,.m$
Move from line 20 through the current line to the end of the file.

ch05_02.htm:
:%d
Delete all the lines in a file.

ch05_02.htm:consecutive duplicate).

ch05_02.htm:
:.,.+20d
Delete from current line through the next 20 lines.

ch05_02.htm:file to two lines above the current line.

ch05_02.htm:to 20 lines further on in the file.

ch05_02.htm:cursor) and put them at the top of the file.

ch05_02.htm:
:/pattern/d
Delete the next line containing pattern.

ch05_02.htm:(You could also use +1 instead of + alone.)

ch05_02.htm:first line containing pattern2.

ch05_02.htm:line containing pattern and put it after line 23.

ch05_02.htm:
:g/pattern
Finds (moves to) the last occurrence of pattern in the file.

ch05_02.htm:
:g/pattern/p
Finds and displays all lines in the file containing pattern.

ch05_02.htm:each line found.

ch05_02.htm:pattern.

ch05_02.htm:line 4 before you invoked the ex prompt).

ch05_02.htm:lines (with numbers) containing pattern.

ch05_03.htm:

ch05_03.htm:

ch05_03.htm:The write happens unconditionally, even if the file was not changed.

ch05_03.htm: ch05_03.htm:
:230,$w newfile
Saves from line 230 to end of file in newfile.

ch05_03.htm:
:.,600w newfile
Saves from the current line to line 600 in newfile.

ch05_04.htm:
:$r /home/tim/data
Place the read-in file at the end of the current file.

ch05_04.htm:
:0r /home/tim/data
Place the read-in file at the very beginning of the current file.

ch05_04.htm:after the line containing pattern.

ch06_03.htm:pep, pip, and pcp.

ch06_03.htm:line with nothing).

ch06_03.htm:stands for itself.

ch06_03.htm:stands for itself.

ch06_03.htm:(Use \\ to get a literal backslash.)

ch06_03.htm:[^a-z] matches any character that is not a lowercase letter.

ch06_03.htm: ch06_03.htm:these do not have to be used in matched pairs.

ch06_03.htm: ch06_03.htm:and \) earlier in this chapter.

ch06_03.htm:To specify a real backslash, type two in a row (\\).

ch06_03.htm:"replays" the line, followed by your text.

ch06_03.htm:doesn't need to be the same, though.

ch06_03.htm: ch06_03.htm:with the lowercase l; the one comes after.)

ch06_03.htm:
:%s/Fortran/\U&/
ch07_03.htm:with the name in the middle of the expansion only expands once.

ch07_03.htm:expansion stops, and nvi produces an error message.

ch07_03.htm:stops expanding, but without any error message.

ch07_03.htm:

ch07_03.htm:

ch07_03.htm:
:map x sequence
Define character x as a sequence of editing commands.

ch07_03.htm:
:unmap x
Disable the sequence defined for x.

ch07_03.htm:
:map
List the characters that are currently mapped.

ch07_03.htm:
Letters
g K q V v

ch07_03.htm:
Control keys
^A ^K ^O ^W ^X

ch07_03.htm:
Symbols
_ * \ =

ch07_05.htm:while typing in C/C++ source code.

ch07_05.htm: ch08_01.htm: ch08_01.htm:also be supported.

ch08_01.htm:the UNIX egrep(1) command.

ch08_01.htm:C++, which allows overloaded function names.

ch08_01.htm:

ch08_01.htm:cycle of software development.

ch08_01.htm:This is particularly useful for editing program source code.

ch08_04.htm:of the strings house or home.

ch08_04.htm:In this case, \( represents a literal left parenthesis.

ch08_04.htm:ho(use|me)+ will not match ho.

ch08_04.htm:nothing else.

ch08_04.htm:but nothing else.

ch08_04.htm:repititions.

ch08_04.htm: ch08_04.htm:and \}.

ch08_06.htm:things, such as commands and options.

ch08_06.htm:Also, the ability to edit files containing any 8-bit character.

ch08_06.htm:to a file.

ch08_06.htm:
Incremental searching
The ability to search for text while you are typing the search pattern.

ch08_06.htm:instead of wrapping.

ch08_06.htm:some operation will be done.

ch08_06.htm:as well as indicators of the current line and column.

ch08_06.htm:or ex options are required.

ch08_06.htm:
Section 10.10.)

ch08_06.htm:easier to edit binary files.

ch08_06.htm:or ex options are required.

ch08_07.htm:all from within the editor.

ch08_07.htm:syntactic elements in different kinds of files.

ch09_02.htm:(The old syntax is also accepted.)

ch09_02.htm:changing the file while you're working on it.

ch09_02.htm:option.

ch09_02.htm:line, list all the files that can be recovered.

ch09_02.htm: ch09_02.htm:argument; nvi supports both.

ch09_02.htm:Start editing at the specified tag.

ch09_02.htm:Set the initial window size to size lines.

ch09_03.htm:line options, commands, options, and ex commands.

ch09_03.htm:
The vi Man Page
The man page for nvi.

ch09_03.htm:
The vi Tutorial
This document is a tutorial introduction to editing with vi.

ch09_03.htm:a bit out-of-date with respect to the facilities in nvi.

ch09_07.htm:

ch09_07.htm:In this case, \( represents a literal left parenthesis.

ch09_07.htm:in parentheses.

ch09_07.htm:Matches zero or one occurrence of the preceding regular expression.

ch09_07.htm:previous regular expression.

ch09_07.htm:previous regular expression.

ch09_07.htm:
{n,m}
Matches n to m repetitions.

ch09_07.htm:and \}.

ch09_10.htm:Spanish, and Swedish.

ch09_10.htm:to use any character as a buffer name.

ch09_10.htm:unique temporary file.

ch10_02.htm:Load each file named on the command line into a separate window.

ch10_02.htm:

ch10_02.htm:
-R

Start editing each file in read-only mode.

ch10_02.htm:This may be easier for novice users.

ch10_02.htm:provides ex scripting.

ch10_02.htm:instead of the default name. Session files are discussed below.

ch10_02.htm:of elvis.

ch10_02.htm:(The old syntax is also accepted.)

ch10_02.htm:Start editing at the specified tag.

ch10_02.htm:problems with initialization files.

ch10_02.htm:Print a summary of the possible options.

ch10_06.htm:windows remains constant.

ch10_06.htm:A value of 0 disables blinking.

ch10_06.htm:Setting it to zero lets the window manager to do the placement.

ch10_06.htm:This option has no effect on color displays.

ch10_06.htm:an interactive terminal emulator in another window.

ch10_06.htm:The default is right.

ch10_07.htm:Matches one or more of the preceding regular expressions.

ch10_07.htm:

ch10_07.htm:

ch10_07.htm:next occurrence of hello.

ch10_07.htm:or xxx.

ch10_10.htm:Otherwise, the terse message is used.

ch10_10.htm:Display modes get their own subsection, below.

ch10_10.htm:This feature also gets its own subsection, below.

ch10_10.htm:on terminals that don't have cursor motion capabilities.)

ch10_10.htm:provide complete security for you.

ch10_10.htm:for examples.

ch10_10.htm:writing complicated input or command maps.

ch10_10.htm:linefeeds internally.

ch10_10.htm:in order to turn on syntax highlighting.

ch10_10.htm:You must set the backup option for this to work.

ch10_10.htm:

ch11_02.htm:You can give up to ten -c commands.

ch11_02.htm:

ch11_02.htm:line, list all the files that can be recovered.

ch11_02.htm:argument.

ch11_02.htm:possible to edit a binary file.

ch11_02.htm:to finish, such as mail handling programs.

ch11_02.htm:compiled in.

ch11_02.htm:window for each file argument.

ch11_02.htm:instead of the default viminfo file.

ch11_02.htm:useful for editing files on slow media, such as floppies.

ch11_02.htm:Quick fix mode is discussed in
Section 11.9.1.

ch11_02.htm:and skip all other normal initialization steps.

ch11_02.htm:and skip all other normal GUI initialization steps.

ch11_02.htm:when this is in effect.

ch11_07.htm:

ch11_07.htm:Matches one or more of the preceding regular expression.

ch11_07.htm:

ch11_07.htm:preceded by a backslash, not the right brace.

ch11_07.htm:
\{n}
Matches n of the preceding regular expression.

ch11_07.htm:as much as possible.

ch11_07.htm:as much as possible.

ch11_07.htm:possible (same as *).

ch11_07.htm:of the preceding regular expression, as few as possible.

ch11_07.htm:
\{-n}
Matches n of the preceding regular expression.

ch11_07.htm:as few as possible.

ch11_07.htm:expression, as few as possible.

ch11_07.htm:option.

ch11_07.htm:
\I
Like \i, but excluding digits.

ch11_07.htm:

ch11_07.htm:
\K
Like \k, but excluding digits.

ch11_07.htm:option.

ch11_07.htm:
\F
Like \f, but excluding digits.

ch11_07.htm:option.

ch11_07.htm:
\P
Like \p, but excluding digits.

ch11_07.htm:

ch11_07.htm:
\S
Matches anything that isn't a space or a tab.

ch11_07.htm:

ch11_07.htm:

ch11_07.htm:

ch11_07.htm:

ch11_07.htm:See the vim documentation for more details.

ch11_07.htm:Matches the last given substitute (i.e., replacement) string.

ch11_07.htm:(\1, \2, etc.).

ch11_07.htm:to represent the second, third, and so forth subexpressions.

ch11_08.htm:
Command names
Available at the start of the command line.

ch11_08.htm:
Tag values
After you've typed :tag.

ch11_08.htm:(See :help suffixes for the details.)

ch11_08.htm:in the current value of the variable.

ch11_10.htm:at the end of each line.)

ch11_10.htm:send a donation to a children's center in Uganda.

ch11_10.htm:with C and C++ programs.

ch11_10.htm:i.e., a command to be executed when that event occurs.

ch12_02.htm:

ch12_02.htm:This can also be given as +N.

ch12_02.htm:This can also be given as +/pattern.

ch12_02.htm:parsing eats the -t.

ch12_02.htm:

ch12_02.htm:mode is set in the startup file.)

ch12_02.htm:permitted to any buffer while in this mode.

ch12_02.htm:(i.e., VILEINIT).

ch12_03.htm:In particular, it is easy to write it out to a file for later printing.

ch12_03.htm:help file to find information on a particular topic.

ch12_03.htm:the delete-next-character function.

ch12_03.htm:current cursor position.

ch12_06.htm:neXtaw, and ansi.

ch12_06.htm:
--with-scr=value
Same as --with-screen.

ch12_06.htm:This is the "No Toolkit" version.

ch12_06.htm:
--with-Xaw3d
Link with Xaw 3-D library.

ch12_06.htm:
--with-neXtaw
Link with neXt Athena library.

ch12_06.htm:the vile custom scrollbars.

ch12_07.htm:

ch12_07.htm:

ch12_07.htm:

ch12_07.htm:(\1, \2, etc.).

ch12_07.htm:

ch12_07.htm: ch12_07.htm:

ch12_07.htm:Whitespace is considered to be printable.

ch12_09.htm:This will then work out of the box.

ch12_09.htm: ch12_10.htm:command line.

ch12_10.htm:for editing different kinds of files.

ch12_10.htm:and flexible.

ch12_10.htm:
Miscellaneous small features
A number of smaller features make day-to-day editing easier.

ch12_10.htm:This is perhaps the "pager to end all pagers."

ch12_10.htm:This makes it easy to edit DOS files on a UNIX or Linux system.

ch12_10.htm:faster.

ch12_10.htm:are output verbatim.