-
- Weitere Informationen zu diesem Buch:
Inhaltsverzeichnis | Index | Probekapitel | Kolophon | Rezensionen |
- Weitere Informationen zu diesem Buch:
Sixth Edition November 1998
ISBN 978-1-56592-426-0
Weitere Informationen zu diesem Buch
Inhaltsverzeichnis |
Index |
Probekapitel |
Kolophon |
Rezensionen |
Index
[ Symbols ], [ A ], [ B ], [ C ], [ D ], [ E ], [ F ], [ G ], [ H ], [ I ], [ J ], [ K ], [ L ], [ M ], [ N ], [ O ], [ P ], [ Q ], [ R ], [ S ], [ T ], [ U ], [ V ], [ W ], [ X ], [ Y ],
Symbols[ Top ]/
Symbols
& (ampersand)
metacharacter, 81
to repeat last command, 83
<> (angle brackets)
<< (redirect/here document) operator, 124
>> (redirect/append) operator, 66
<rs>< <rs>> metacharacters, 79
matching, 130
' (apostrophe)
'' (move to mark) command, 45, 54
marking lines (vile), 248
move to mark command, 54
* (asterisk) metacharacter, 77
[*, ]* (matching) commands (vim), 224
@ (at sign)
@ option (vile), 231-232
\@ metacharacter, 177
@-functions, 120
` (backquote)
`` (move to mark) command, 45, 54
marking characters (vile), 248
move to mark command, 54
<rs> (backslash) metacharacter, 77, 81
\1, \2, ... metacharacters, 81, 206
<rs>< <rs>> metacharacters, 79
\@ metacharacter, 177
\{...} metacharacter, 177, 204
\= metacharacter, 177, 204
<rs>(...<rs>) metacharacters, 78, 206, 242
\+ metacharacter, 177, 204, 242
\? metacharacter, 177, 242
\| metacharacter, 204, 242
\b metacharacter, 205
\d, \D metacharacters, 242
\e metacharacter, 82, 205
\E metacharacter, 82
\f, \F metacharacters, 205
\i, \I metacharacters, 205
\k, \K metacharacters, 205
\n metacharacter, 205
<rs>n metacharacter, 81, 206
\p, \P metacharacters, 205, 242
\r metacharacter, 205
\s, \S metacharacters, 205, 242
\t metacharacter, 205
<rs>U and <rs>L metacharacters, 82
<rs>u and <rs>l metacharacters, 82
\w, \W metacharacters, 242
{} (braces)
\{...} metacharacter, 177, 204
{ (move cursor) command, 40
} (move cursor) command, 40
[{, ]} (matching) commands (vim), 224
finding and matching, 130
metacharacters, 139, 159
[] (brackets)
[*, ]* (matching) commands (vim), 224
[}, ]} (matching) commands (vim), 224
[[, ]] (move cursor) commands, 40
[: :] metacharacters, 79
[. .] metacharacters, 79
[= =] metacharacters, 80
[(, ]) (matching) commands (vim), 224
[#, ]# (matching) commands (vim), 224
[/, ]/ (matching) commands (vim), 224
[d, ]d, [D, ]D, [^D, ]^D (file search) commands (vim), 222
[i, ]i, [I, ]I, [^I, ]^I (file search) commands (vim), 222
metacharacters, 78
^ (caret)
cursor movement command, 39
metacharacter, 77
representing CTRL key, xiv
(see also CTRL- commands)
within [] metacharacters, 78
: (colon)
:! for UNIX commands in ex, 104
for ex commands in vi, 5, 58
line editing mode, 7
, (comma)
for line ranges (ex), 58, 60
repeat search command, 44
$ (dollar sign)
cursor movement command, 15, 39
for last file line (ex), 61
marking end of change region, 19
metacharacter, 77
. (dot)
current line symbol (ex), 61
metacharacter, 77
repeat command, 29, 75
undo/redo (nvi), 162
= (equal sign)
\= metacharacter, 177, 204
:= (identify line) command (ex), 61
! (exclamation point)
ex commands starting with, 10
mapping keys for insert mode, 115
overriding save warnings, 65
for UNIX commands, 104, 106
- (hyphen)
move cursor command, 13, 39
for previous file lines (ex), 62
() (parentheses)
<rs>(...<rs>) metacharacters, 78, 206, 242
[(, ]) (matching) commands (vim), 224
(, ) (move cursor) commands, 40
finding and removing, 114
as grouping metacharacter, 139, 159
matching, 130
% (percent sign)
for current filename, 70
every line symbol (ex), 74
matching brackets, 130
representing every line (ex), 61
vim extended matching command, 224
+ (plus sign)
\+ metacharacter, 177, 204, 242
metacharacter, 139, 159
move cursor command, 13, 39
for next file lines (ex), 62
running commands when starting vi, 49
# (pound sign)
[#, ]# (matching) commands (vim), 224
for alternate filename, 70
show line numbers command, 61
? (question mark)
-? option (elvis), 166
-? option (vile), 230
\? metacharacter, 177, 242
metacharacter, 139, 159
search command, 5, 41
" (yank from buffer) command, 53
; (semicolon)
for line ranges (ex), 64
repeat search command, 44
/ (slash)
[/, ]/ (matching) commands (vim), 224
pathname separator, 6
referring to marks (vile), 248
search command, 5, 40
opening files at specific place, 50
~ (tilde)
:~ (substitute using last search pattern) command (ex), 83
along left screen margin, 6
case conversion command, 22
as last replacement text, 79
metacharacter, 81, 206
| (vertical bar)
\| metacharacter, 204, 242
alternation metacharacter, 139, 159
for combining ex commands, 64
cursor movement command, 39
Numbers
0 (move cursor) command, 15, 39
\1, \2, ... metacharacters, 81, 206
A[ Top ]
A (append) command, 31
a (append) command, 16, 19
-a option (elvis), 166, 168
:ab (abbreviation) command (ex), 102, 108
abbreviations for commands, 108
absolute line addresses, 60
absolute pathnames, 6
"Address search hit BOTTOM without matching pattern" message, 43
:alias command (elvis), 190
:all command (vim), 199
alphabetizing text blocks (example), 125
alternate .exrc files, 102, 196
alternate file, # for, 70
alternation, 139, 159, 204, 242
ampersand (&)
metacharacter, 81
to repeat last command, 83
angle brackets (<>)
<< (redirect/here document) operator, 124
>> (redirect/append) operator, 66
<rs>< <rs>> metacharacters, 79
matching, 130
apostrophe (') command
'' (move to mark) command, 45, 54
move to mark command, 54
appending text, 16, 19
from named buffers, 54
to saved files, 66
:apropos command (vile), 231
:ar, :args commands (ex), 69
archives on vi (ftp), 302-303
arity keyword (ctags), 142
arrow keys, 13
asterisk (*) metacharacter, 77
[*, ]* (matching) commands (vim), 224
at sign (@)
sortas=, 231-232
\@ metacharacter, 177
:autocmd command (vim), 224
autocommand facility (vim), 224
autoiconify option (elvis), 175
autoindent option (vim), 220
automating file type detection (vim), 219
autosave option, 52
autowrite option, 52, 104
awk data manipulation language, 127
B[ Top ]
\b, \B metacharacters, 205
b (move word) command, 16
B (move word) command, 16
-b option (vim), 194, 196
backquote (`)
`` (move to mark) command, 45, 54
marking characters (vile), 248
move to mark command, 54
backslash (<rs>) (see <rs> (backslash) metacharacter)
BACKSPACE key
deleting in insert mode, 12
moving with, 13
backward searching, 41
"Bad file number" message, 7
"Bad termpcap entry" message, 7
bang (see exclamation point)
beep mode (see command mode)
:bg (hide window) command (nvi), 158
binary data, editing, 147
elvis editor, 180
nvi editor, 162
vile editor, 247
vim editor, 211
binary option (elvis), 180
:bind-key command, 253
blinktime option (elvis), 175
"Block device required" message, 7
"Block special file" message, 7
block (visual) mode, 149
elvis editor, 180
vile editor, 248
vim editor, 212
bookmarks, placing, 54
Bostic, Keith, 155
bottom-line commands, 5
braces {}
\{...} metacharacter, 177, 204
{ (move cursor) command, 40
} (move cursor) command, 40
[{, ]} (matching) commands (vim), 224
finding and matching, 130
metacharacters, 139, 159
bracket expressions, POSIX, 79-80
brackets ([])
[*, ]* (matching) commands (vim), 224
[{, ]} (matching) commands (vim), 224
[[, ]] (move cursor) commands, 40
[: :] metacharacters, 79
[. .] metacharacters, 79
[= =] metacharacters, 80
[(, ]) (matching) commands (vim), 224
[#, ]# (matching) commands (vim), 224
[/, ]/ (matching) commands (vim), 224
[d, ]d, [D, ]D, [^D, ]^D (file search) commands (vim), 222
[i, ]i, [I, ]I, [^I, ]^I (file search) commands (vim), 222
matching, 130
metacharacters, 78
:browse command, 189
bs values (lptype option), 188
Buettner, Kevin, 229
bufdisplay option (elvis), 187
buffers, 5, 52-54
autowrite and autosave options, 52
commands (see command-line history)
commands for (summary), 55
copying file contents into, 67
executing contents of, 120-121
hold buffer (metacharacters), 78, 206, 242
multiwindow editing and, 137
named buffers, 29, 52-54, 71
arbitrarily naming (nvi), 163
numbered buffers for deletions/yanks, 27, 52
preserving manually, 52
recovering after system failure, 51
renaming (ex), 66
built-in calculator, elvis, 185
C[ Top ]
C, C++ programming
cmode mode (vile), 255
vim editor features, 220-224
C (change) command, 20
c (change) command, 16, 19-22
cc command, 20-21
cw command, 19-20
examples of use, 33, 48
review examples of, 43
-c command-line option, 49
c option (:s command), 74
-c option (elvis), 166
-c option (nvi), 155
-c option (vim), 193
:calc command (elvis), 185
calculator, elvis, 185
capitals, changing to lowercase, 22, 82
CAPS LOCK key, 33
caret (^)
cursor movement command, 39
metacharacter, 77
representing CTRL key, xiv
(see also CTRL- commands)
within [] metacharacters, 78
case, converting, 22, 82
case insensitivity, 33
case sensitivity, 5-6, 82
case-insensitive pattern searches, 101
pattern searching, 104
:cc command (vim), 215
:cc command (elvis), 181
C/C++ comments, placing (example), 115
ccprg option (elvis), 181
cedit option (nvi), 160
:cfile (:cf) command (vim), 215
changing (replacing) text, 16, 19-22
by characters, 21
globally, 73-98
confirming substitutions, 74
context sensitivity, 75
replacement-string metacharacters, 80-82
substitution tricks, 83-84
by lines, 20-22
searching and, 43
by words, 19-20
character classes, 79-80
"Character special file" message, 7
character strings, 41
characters, 35
case conversions, 22, 82
deleting, 12, 25
marking with ` (vile), 248
matching (see metacharacters)
moving by, 13
replacing (changing) singly, 21
searching for in lines, 43
transposing, 27
(see also lines; text; words)
charityware, vim as, 219
:checkpath (:che) command (vim), 223
cindent option (vim), 220
cinkeys option (vim), 220
cinoptions option (vim), 220
cinwords option (vim), 220
class keyword (ctags), 142
:clast (:cl) command (vim), 215
clicking in elvis, 173
-client option (elvis), 173
clipboard, xvile and, 240
:clist (:cl) command (vim), 215
clones, vi, 135-153
enhanced tags, 140-145
feature summary, 152
GUI interfaces, 138
elvis editor, 171-176, 182, 185-188
vile editor, 235-242, 251
vim editor, 202-204, 216
improvements over vi, 146-150
elvis editor, 177-181
nvi editor, 160-163
vile editor, 244-250
vim editor, 206-214
multiwindow editing, 137-138
elvis editor, 168-171
nvi editor, 157-158
vile editor, 233-235
vim editor, 197-201
programming assistance, 150-152
elvis editor, 181-184
vile editor, 250-252
vim editor, 214-218
regular expressions, 138-140
elvis editor, 177
nvi editor, 159
vile editor, 242
vim editor, 204-206
set command options (list), 276-294
(see also specific clone)
:close command (elvis), 169
:close (:clo) command (vim), 198
cmode mode (vile), 255
:cNext (:cN) command (vim), 215
:cnext (:cn) command (vim), 215
:co (copy) command (ex), 59
coffee mugs with vi logo, 301
collating symbols, 79
colon (:)
:! for UNIX commands in ex, 104
for ex commands in vi, 5, 58
line editing mode, 7
colors (see GUI interfaces for vi clones)
comma (,)
for line ranges (ex), 58, 60
repeat search command, 44
command completion, 146
elvis editor, 177
nvi editor, 160
vile editor, 244
vim editor, 206
command mode, 4, 12
keystroke maps, 110-120
function and special keys, 117-119
useful examples of using, 113-115
mode indicators, 150
command-line history, 146
elvis editor, 177
nvi editor, 160
vile editor, 244
vim editor, 206
command-line options, 49-52, 265
elvis editor, 166
nvi editor, 155-156
vile editor, 230-231
vim editor, 193-194
commands
autocommands (vim), 224
ex (see ex commands)
saving, 108-121
UNIX (see UNIX commands)
vi (see vi commands)
comment option (vim), 220
commentfont display mode (elvis), 182
comments
in ex scripts, 126
placing markers around lines, 115
compiling program source code, 151
elvis editor, 181
vile editor, 250
vim editor, 215
completion, command-line, 146
elvis editor, 177
nvi editor, 160
vile editor, 244
vim editor, 206
COMSPEC environment variable (vim), 195
:configure command (vile), 236
configuring options (see :set command)
confirming substitutions, 74
context-sensitive global replacement, 75
:copy command (ex), 59
:copy-to-clipboard command (xvile), 241
copying files into other files, 67
copying text, 28-29
by lines, 59
named deletion/yank buffers, 53-54, 71
yank-and-put, 16
named deletion/yank buffers, 52
numbered deletion/yank buffers, 27, 52
COSE standards, 167
cpoption option (vim), 211
:cPrevious (:cP) command (vim), 215
:cquit (:cq) command (vim), 215
cr values (lptype option), 188
:crewind command (vim), 215
cscope program, 161
ctags command (UNIX), 131
Exuberant ctags program, 140-145, 162, 179
tag stacks, 143-145
elvis editor, 178
nvi editor, 160-162
Solaris vi, 132, 143-145
vile editor, 245
vim editor, 208
CTRL- commands
CTRL-@, 30
CTRL-] (find tag), 143-145, 161, 178, 210, 246
CTRL-^ command, 70
CTRL-A (completion; vim), 207
CTRL-A CTRL-] (next tag; vile), 246
CTRL-B, CTRL-F (scrolling), 37
CTRL-D (completion; vim), 207
CTRL-D, CTRL-U (scrolling), 37
CTRL-E, CTRL-Y (scrolling), 37
CTRL-G (display line numbers), 45, 61
CTRL-L (completion; vim), 207
CTRL-L, CTRL-R (redrawing), 38
CTRL-N (completion; vim), 207-208
CTRL-P (completion; vim), 207-208
CTRL-T (find tag), 143, 161, 178, 210
CTRL-T CTRL-X CTRL-] (next tag; vile), 246
CTRL-V, 111
CTRL-V command (elvis block mode), 180
CTRL-V command (vim block mode), 212
CTRL-W commands
elvis vi-mode window commands, 170
nvi window cycle commands, 158
vim file searching commands, 222
vim vi-mode window commands, 197, 200-201
CTRL-X completion commands (vim), 208
CTRL-X CTRL-R, CTRL-X CTRL-L (scroll; vile), 149
CTRL-X CTRL-S, CTRL-X CTRL-R (search; vile), 148
curly braces {}
{ (move cursor) command, 40
} (move cursor) command, 40
finding and matching, 130
metacharacters, 139, 159
current file, % for, 70
current line (ex)
. symbol for, 61
redefining, 63
cursor, moving, 13-16, 34, 38-39
commands for, 46, 261
to marks, 54
opening files at specific place, 49
by searching for patterns, 40-45
by text blocks, 15, 39-40
vim commands for (programming), 223
xvile interface, 239
customizing editing environment, 100-104
cut-and-paste, 16, 26
D[ Top ]
[d, ]d (file search) commands (vim), 222
[D, ]D (file search) commands (vim), 222
\d, \D metacharacters, 242
D (delete) command, 25
d (delete) command, 16, 23
db, d$, d0 commands, 24
dd command, 24
de and dE commands, 24
df command, 44
dw command, 23
examples of use, 33, 48
with named buffers, 29, 52-54
numbered buffers for, 27, 52
review examples of, 43
:d (delete) command (ex), 59
[^D, ]^D (file search) commands (vim), 222
database, switching items in (example), 94
date command (UNIX), 104
define option (vim), 222
:delete command (ex), 59
:delete-other-windows command (vile), 234
:delete-window command (vile), 234
deleting
files, 10
lines, 59
parentheses (example), 114
recovering deletions, 52
text, 16, 23-26, 44
by characters, 12, 25
with ex editor, 62
by lines, 24
named buffers for, 29, 52-54, 71
numbered buffers for, 27, 52
undoing deletions, 26
by words, 23
:describe-function command (vile), 232
:describe-key command (vile), 231
df command (UNIX), 10
:di (display) command (elvis), 187
:di (display) command (nvi), 158, 161
Dickey, Tom, 229
"Directory" message, 7
"Disk quota has been reached" message, 10
:display (di) command (nvi), 161
:display (di) command (elvis), 187
:display (di) command (nvi), 158
display modes, elvis, 182, 185-188
:display syntax command (elvis), 182, 185-188
:djump (:dj) command (vim), 223
:dlist (:dl) command (vim), 223
documentation
elvis editor, 167
nvi editor, 156
vile editor, 231
vim editor, 195
vi-related archives (ftp), 302-303
vi-related web sites, 299-302
dollar sign ($)
cursor movement command, 15, 39
for last file line (ex), 61
marking end of change region, 19
metacharacter, 77
DOS files, editing with vile, 257
dot (.)
current line symbol (ex), 61
metacharacter, 77
repeat command, 29, 75
undo/redo (nvi), 162
double quote (") command, 53
dragging in elvis, 173
:dsearch (:ds) command (vim), 223
:dsplit (:dsp) command (vim), 223
dumb terminals
change commands, 18
deletions on, 24
dumb values (lptype option), 188
E[ Top ]
:e (edit file) command (ex), 69
:e! command, 9, 70
<rs>E metacharacter, 82
<rs>e metacharacter, 82, 205
e (move cursor) command, 40
E (move cursor) command, 40
echoing of commands, 5
ed text editor, 3
edcompatible option, 83
:Edit command (nvi), 158
:edit-file command (vile), 234
edit-compile speedup, 151
elvis editor, 181
vile editor, 250
vim editor, 215
editing, 11-35
clone improvements over vi, 146-150, 160-163, 177-181, 206-214, 244-250
commands for (quick reference), 262
customizing editing environment, 100-104
ex commands on command line, 146
elvis editor, 177
nvi editor, 160
vile editor, 244
vim editor, 206
ex editor for, 59-65
lists of files, 114
multiple files, 68-72
read-only mode, 51
recovering the buffer, 51
replacing text (see replacing text)
source code, advice for, 127-132
indentation control, 127-129
matching brackets, 130
using tags, 131, 140-145
using multiple windows, 137-138
elvis editor, 168-171
nvi editor, 157-158
vile editor, 233-235
vim editor, 197-201
vile editing model, 253
"elvis ex history" buffer, 177
elvis (vi clone), 155, 165-191
confirming replacements, 75
documentation and online help, 167
extended regular expressions, 177
extension languages, 137
feature summary, 152
future of, 189
GUI interfaces for, 171-176
important command-line arguments, 166
improvements over vi, 177-181
initialization of, 167
interesting features, 184-188
line length, 147
mode indicators, 150
multiwindow editing, 168-171
obtaining source code, 190
print management, 187
programming assistance, 181-184
set command options (list), 282-284
sideways scrolling, 149
tag stacks, 178
word abbreviations, 109
elvis.arf file, 187-188
elvis.awf file, 188
elvis.brf file, 180, 188
elvis.bwf file, 188
elvis.ini script, 168
elvis.msg file, 168, 184
ELVISPATH environment variable (elvis), 168
elvispath option (elvis), 168
emacs text editor, 3
vi editor vs., 303
vile editing model, 253
END key, mapping, 118
enum keyword (ctags), 142
epson values (lptype option), 187
equal sign (=)
\= metacharacter, 177, 204
:= (identify line) command (ex), 61
equivalence classes, 80
:er, :errlist commands (elvis), 181
erasing (see deleting)
error finder, vile, 251
errorformat option (vim), 216
ESC for command mode, 8, 12
/etc/vi.exrc file (nvi), 157
:eval command (elvis), 185
events, executing commands after (vim), 224
ex commands, 5, 56-59
alphabetical list of, 268-275
combining, 64
command quick reference, 261-266
editing on command line, 146
elvis editor, 177
nvi editor, 160
vile editor, 244
vim editor, 206
executing UNIX commands, 104-108
line addressing, 57, 60
ranges of lines, 60, 63
redefining current line, 63
relative addressing, 62
symbols for, 61
saving and exiting, 8, 65-67
syntax for, 267-268
ex scripts, 121-127
ex text editor, 3, 56-72
editing with, 59-65
executing buffers from, 120
filtering text with, 105
invoking on multiple files, 122
using ex commands in vi, 5
exclamation point (!)
ex commands starting with, 10
mapping keys for insert mode, 115
overriding save warnings, 65
for UNIX commands, 104, 106
"Executable" message, 7
executing text from buffers, 120-121
EXINIT environment variable, 100
elvis editor, 168
nvi editor, 157
vim editor, 196
"[Existing file]" message, 9
exiting ex (into vi), 59
exiting vi, 8-10, 65-67
commands for (quick reference), 264
.exrc files, 100, 102-103, 157, 196
security concerning (elvis), 185
exrc option, 103, 157, 168
extended regular expressions, 138-140
elvis editor, 177
nvi editor, 159
vile editor, 242
vim editor, 204-206
extended tags file format, 140-145, 162, 179
extension languages, 137
Exuberant ctags program, 140-145, 162, 179
:exusage command (nvi), 156
F[ Top ]
\f, \F metacharacters, 205
-f option (elvis), 166
-F option (nvi), 155
-f option (vim), 194, 197
f (search line) command, 43
F (search line) command, 44
:fg (uncover window) command (nvi), 158
:Fg (uncover window) command (nvi), 158
"File exists" message, 9
"File is read only" message, 7, 9
file keyword (ctags), 141
file searching (vim), 221
"File system is full" message, 10
"File to load" prompt, 174
file type detection (vim), 219
filec option (nvi), 160
fileformat variable (vim), 219
files
copying into other files, 67
current and alternate (% and #), 70
deleting, 10
editing (see editing)
executing ex scripts on, 121-127
filenames, 6, 57
iterating through lists of, 114
opening, 5-8
multiple at once, 68-69
previous file, 70
read-only mode, 51
at specific place, 49
quitting (see quitting vi)
reading as vi environments, 102
renaming buffer (ex), 66
saving (see saving edits)
writing (see writing the buffer)
filtering text through UNIX commands, 105-108
:find-file command (vile), 234
"First address exceeds second" message, 63
first line of file
moving to, 38
firstx, firsty option (elvis), 175
fonts (see GUI interfaces for vi clones)
for loops, 122
formatoptions option (vim), 220
formatting codes, 4
Fox, Paul, 229
ftp archives on vi, 302-303
function keys, mapping, 117-119
function keyword (ctags), 141
functionfont display mode (elvis), 183
G[ Top ]
:g (global replacement) command (ex), 75
collecting lines with (example), 96
pattern-matching examples, 84-98
POSIX bracket expressions, 79-80
repeating commands with (example), 96
replacement-string metacharacters, 80-82
search-pattern metacharacters, 77-79
substitution tricks, 83-84
g (global) command (ex), 64
G (go to) command, 45
g option (:s command), 74
-G option (elvis), 166
-g option (vim), 194
global replacement, 73-98
confirming substitutions, 74
context sensitivity, 75
examples of, 84-98
global pattern-matching rules, 76-84
pattern-matching rules
POSIX bracket expressions, 79-80
replacement-string metacharacters, 80-82
search-pattern metacharacters, 77-79
substitution tricks, 83-84
(see also :g command)
global searches (ex), 64
glossary
converting to troff (example), 112
graphical vim (gvim, gview), 193, 197
:gui command (elvis), 174
GUI interfaces for vi clones, 138
elvis editor, 171-176
display modes, 182, 185-188
vile editor, 235-242
vim editor, 202-204
gzip utility, 153
H[ Top ]
H (home) command, 38
h (move cursor) command, 13, 39
-h option (vile), 231
Haley, Chuck, 154
hash mark (see pound sign (#))
help
elvis editor, 167
nvi editor, 156
vile editor, 231
vim editor, 195
:help (:h) command (vile), 231
:help command (vim), 195
here documents, 124
hex display mode (elvis), 180, 185
:hide (:hid) command (vim), 199
Hiebert, Darren, 140
:historical-buffer command (vile), 235
[History] buffer (vile), 244
history, command-line, 146
elvis editor, 177
nvi editor, 160
vile editor, 244
vim editor, 206
history option (vim), 206
hold buffer, 78, 206, 242
home (see first line of file)
HOME key, mapping, 118
$HOME/.nexrc file (nvi), 157
horizontal scrolling, 148
elvis editor, 180
nvi editor, 163
vile editor, 247
vim editor, 212
horizscroll option, 149
Horton, Mark, 154
hp values (lptype option), 188
html display mode (elvis), 178, 185-186
hyphen (-)
move cursor command, 13, 39
for previous file lines (ex), 62
I[ Top ]
[i, ]i (file search) commands (vim), 222
[I, ]I (file search) commands (vim), 222
\i, \I metacharacters, 205
i (insert) command, 12
I (insert) command, 31
-i option (elvis), 166
-i option (vim), 194
[^I, ]^I (file search) commands (vim), 222
ibm values (lptype option), 187
ic option, 82, 101
ignorecase option, 104
:ijump (:ij) command (vim), 223
:ilist (:il) command (vim), 223
include option (vim), 222
:incremental-search command (vile), 247
incremental searching, 148
nvi editor, 162
vile editor, 247
vim editor, 211
incsearch option (vim), 148, 202, 211, 221
indentation, 127-129
vim and (smart indenting), 220
infinite undo facility, 147
elvis editor, 179
nvi editor, 162
vile editor, 246
vim editor, 211
initialization
elvis editor, 167
nvi editor, 157
vile editor, 232
vim editor, 195-197
inputtab option (elvis), 178
insert mode
completion in (vim), 208
mapping keys for, 115
mode indicators, 150
word abbreviations, 108
inserting text, 31-32
a (append) command, 16, 19
handling long insertions, 30, 115, 147
elvis editor, 180
nvi editor, 162
vile editor, 247
vim editor, 211
in insert mode, 8, 12
repeating insert with CTRL-@, 30
intelligent terminals, 18
interfaces for vi clones, 138
elvis editor, 171-176
display modes, 182, 185-188
vile editor, 235-242
vim editor, 202-204
internationalization support
elvis editor, 184
nvi editor, 163
Internet, vi and, 299-306
invoking vi, 5
command-line options, 49-52, 265
on multiple files, 68
:isearch (:is) command (vim), 223
isfname option (vim), 206
isident option (vim), 205-206
iskeyword option (vim), 206
:isplit (:isp) command (vim), 223
isprint option (vim), 206
J[ Top ]
J (join) command, 32
j (move cursor) command, 13, 39
joining lines, 32
Joy, Bill, 154
K[ Top ]
\k, \K metacharacters, 205
k (move cursor) command, 13, 39
keystrokes, remembering with :map, 110-120
function keys and special keys, 117-119
useful examples of using, 113-115
keywordfont display mode (elvis), 183
Kibaale Children's Centre (KCC), 219
kill ring (see deleting text, buffers for)
kind keyword (ctags), 141
Kirkendall, Steve, 165
L[ Top ]
L (last line) command, 38
<rs>L metacharacter, 82
<rs>l metacharacter, 82
l (move cursor) command, 13, 39
:last command (elvis, vim), 69
last line of file
$ symbol for (ex), 61
moving to, 38
leftright option (nvi), 149, 163
left-right scrolling, 148
elvis editor, 180
nvi editor, 163
vile editor, 247
vim editor, 212
line editors, 3
line numbers, 15
displaying, 45, 60
in ex commands, 57, 60
ranges of lines, 60, 63
redefining current line, 63
relative addressing, 62
symbols for, 61
moving by, 44-45
opening files at specific, 49
line-editing mode, 7
lines, 35
case conversions, 23
collecting with :g command, 96
deleting by, 24
undoing deletions, 26
ex commands for, 59
joining, 32
length limitations, 115, 147
elvis editor, 180
nvi editor, 162
vile editor, 247
vim editor, 211
marking with ' (vile), 248
moving by, 15, 39
moving to specific, 38, 44-45
moving within, 14
opening files at specific, 49
placing C/C++ comments around (example), 115
printing, 57
replacing (changing), 19-22
searching within, 43
to start/end of (see words)
visible on screen, option for, 101
yanking, 28
(see also characters; text; words)
linewrap option (vile), 149
local .exrc files, 102, 157, 196
long insertions, 30, 115, 147
elvis editor, 180
nvi editor, 162
vile editor, 247
vim editor, 211
loops in shell scripts, 122
lowercase, converting to uppercase, 22, 82
lpc, lpcrlf options (elvis), 187
lpcolumns option (elvis), 187
lpconvert option (elvis), 187
lpff, lpformfeed options (elvis), 187
lplines option (elvis), 187
lpo, lpout options (elvis), 187
lpp, lppaper options (elvis), 187
:lpr command (elvis), 187
lprows option (elvis), 187
lptype option (elvis), 187
lpw, lpwrap options (elvis), 187
M[ Top ]
m (mark place) command, 54
M (middle line) command, 38
:m (move) command (ex), 59
magic option, 104
major modes, vile, 255
Make button (elvis), 174
:make command (elvis), 174, 181
:make (:mak) command (vim), 215
makeef option (vim), 216
makeprg option (elvis), 181
makeprg option (vim), 215
man display mode (elvis), 185-186
:map command (ex), 102, 110-120
useful examples of using, 113-115
maps, 110-120
function keys and special keys, 117-119
for insert mode, 115
named buffer contents as, 120
useful examples of, 113-115
margins
repeating long insertions, 30
setting, 15
marking your place, 54
marks (vile visual mode), 248
matching brackets, 130
menu support for xvile, 241
metacharacters, 77-79
extended regular expressions, 138-140
elvis editor, 177
nvi editor, 159
vile editor, 242
vim editor, 204-206
middle line, moving to, 38
mini-hilite option (vile), 244
minus (see hyphen)
mode indicators (vi clones), 150
:modeline-format command (vile), 257
modes, 8
Moolenaar, Bram, 192, 219, 306
Mortice Kern Systems, 127
mouse behavior, elvis, 173
:move command (ex), 59
:move-next-window-down, -up, -left, -right commands (vile), 234
moving
among multiple files, 68
lines, 59
switching database items (example), 94
text blocks by patterns, 86
text (delete-and-put), 16
numbered deletion/yank buffers, 27, 52
moving the cursor, 13-16, 34, 38-39
commands for, 46, 261
to marks, 54
opening files at specific place, 49
by searching for patterns, 40-45
by text blocks, 15, 39-40
vim commands for (programming), 223
xvile interface, 239
mugs with vi logo, 301
multiwindow editing, 137-138
elvis editor, 168-171
nvi editor, 157-158
vile editor, 233-235
vim editor, 197-201
N[ Top ]
\n metacharacter, 205
:n (next file) command (ex), 68
-N option (vile), 230
-n option (vim), 194, 196
N (search again) command, 42
n (search again) command, 42, 75
named buffers, 29, 52-54, 71
arbitrarily naming (nvi), 163
executing contents of, 120
ncurses library, 252
:new command (elvis), 169
:new command (vim), 198
"[new file]" message, 7
newline characters, 14, 147
NEXINIT environment variable (nvi), 157
.nexrc file (nvi), 157
:Next command (nvi), 158
:next-tag command (vile), 245
:next-window command (vile), 234
:no (:normal) command (elvis), 185, 187
"No Toolkit" vile interface, 235
"No write since last change" message, 8, 65
nocp option (vim), 221
noignorecase option, 104
nolinewrap option (vile), 247
nomagic option, 104
"Non-ascii file" message, 7
nonu (nonumber) option, 60
:normal (:no) command (elvis), 185, 187
normal display mode (elvis), 185
"Not a typewriter" message, 7
notagstack option (elvis), 179
nowrap option (elvis), 180
nowrap option (vim), 212
nowrapscan option, 43, 104
nroff formatting package, 4
nu option, 15, 45
numbered deletions/yanks buffers, 27, 52
numbers for lines (see line numbers)
numeric arguments for commands, 14, 32
nvi (vi clone), 154-164
documentation and online help, 156
extended regular expressions, 139, 159
extension languages, 137
feature summary, 152
important command-line arguments, 155-156
improvements over vi, 160-163
infinite undo facility, 148
initialization of, 157
interesting features, 163
line length, 147
mode indicators, 150
multiwindow editing, 157-158
obtaining source code, 163
set command options (list), 280-282
sideways scrolling, 149
tag stacks, 160-162
word abbreviations, 109
O[ Top ]
o (open line) command, 32
O (open line) command, 32
-o option (elvis), 190
-o option (vim), 194
obtaining source code
elvis editor, 190
nvi editor, 163
vile editor, 257
vim editor, 226
online help
elvis editor, 167
nvi editor, 156
vi tutorial, 302
vile editor, 231
vim editor, 195
:only (:on) command (vim), 199
"[open mode]" message, 6
open mode (elvis), 184
opening files, 5-8
multiple files at once, 68-69
previous file, 70
read-only mode, 51
at specific place, 49
options, set command, 101
list of, 276-294
viewing current, 101
(see also :set command)
options, vi command, 49-52, 265
otherfont display mode (elvis), 183
outlinemono option (elvis), 175
output (UNIX), reading into files, 104
overstrike mode, 22
P[ Top ]
\p, \P metacharacters, 205, 242
:p (print) command (ex), 57
P (put) command, 26
with named buffers, 29, 52-54, 71
p (put) command, 16, 26
with named buffers, 29, 52-54, 71
:p (put) command (ex), 71
PAGE UP/DOWN keys, mapping, 118
pana values (lptype option), 187
paragraphs, 40
parentheses ()
<rs>(...<rs>) metacharacters, 78, 206, 242
[(, ]) (matching) commands (vim), 224
( (move cursor) command, 40
) (move cursor) command, 40
finding and removing, 114
as grouping metacharacter, 139, 159
matching, 130
parts of files, saving, 66
:paste-to-clipboard command (xvile), 241
path option (vim), 223
"Pattern not found" message, 41
pattern searching, 40-44
configuration options for, 103
ex commands for, 62, 64
global pattern-matching rules, 76-84
examples, 84-98
POSIX bracket expressions, 79-80
replacement-string metacharacters, 80-82
search-pattern metacharacters, 77-79
substitution tricks, 83-84
incremental searching (vi clones), 148
nvi editor, 162
vile editor, 247
vim editor, 211
making case-insensitive, 101
matching brackets, 130
opening files at specific place, 50
replacing text and (see replacing text)
within lines, 43
wrapping searches, 41, 43
percent sign (%)
for current filename, 70
every line symbol (ex), 74
matching brackets, 130
representing every line (ex), 61
vim extended matching command, 224
period (.)
current line symbol (ex), 61
metacharacter, 77
repeat command, 29, 75
"Permission denied" message, 7, 9
piping into vile, 257
place marking, 54
plus sign (+)
\+ metacharacter, 177, 204, 242
metacharacter, 139, 159
move cursor command, 13, 39
for next file lines (ex), 62
running commands when starting vi, 49
:po command (Solaris vi), 143
:pop (:po) command (elvis), 178
:pop (:po) command (vile), 245
:pop (:po) command (vim), 208
:position-window command (vile), 234
POSIX bracket expressions, 79-80
post-read, post-write files (elvis), 168, 188
pound sign (#)
[#, ]# (matching) commands (vim), 224
for alternate filename, 70
show line numbers command, 61
:pre command (ex), 10, 52
prepfont display mode (elvis), 183
pre-read, pre-write files (elvis), 168, 188
:Previous command (nvi), 158
previous file, switching to, 70
:previous-window command (vile), 234
printing, 57, 187
procedure language, vile, 255
programming assistance, 150-152
C, C++ features (vim), 220-224
edit-compile speedup, 151
elvis editor, 181
vile editor, 250
vim editor, 215
elvis editor, 181-184
source code editing, 127-132
indentation control, 127-129
matching brackets, 130
using tags, 131
syntax highlighting, 152
elvis display modes, 182, 185-188
vile editor, 251
vim display modes, 216
using tags, 140-145
vile editor, 250-252
vim editor, 214-218
prompt line, 6
ps, ps2 values (lptype option), 187
putting text, 16
deleting and (cut-and-paste), 26
from named buffers, 29, 52-54, 71
yanking and (copy-and-paste), 28-29
Q[ Top ]
Q command, 59
:q (quoted motion) command (vile), 248
-q option (vim), 194, 196
:q (quit) command (ex), 8, 65, 198
:q! command, 9, 65
:qall command (elvis), 170
:qall (:qa) command (vim), 199
question mark (?)
\? metacharacter, 177, 242
metacharacter, 139, 159
search command, 5, 41
Quit button (elvis), 174
:quit command (ex), 8, 65, 198
quitting vi, 8-10, 65-67, 264
quote (") command, 53
quoted motion (q) command (vile), 248
quotes about vi, 306
R[ Top ]
\r metacharacter, 205
-r, -R options (elvis), 166
-r, -R options (nvi), 155
-r, -R options (vi), 51
-R option (vile), 231
-r, -R options (vim), 194
:r (read) command (ex), 67
R (replace character) command, 22, 32
r (replace character) command, 21, 32
range of lines, 60, 63
:read command (ex), 67
reading UNIX command output, 104
read-hook option (vile), 256
"[Read only]" message, 7
read-only mode, 51
recovering deletions, 26, 52
recovering the buffer, 51
redrawing screen, 38
dumb terminals and, 18
reformatting text (vile), 257
regular expressions, 76-84, 138-140
elvis editor, 177
metacharacters, 77-84
substitution tricks, 83-84
nvi editor, 159
pattern-matching examples, 84-98
POSIX bracket expressions, 79-80
vile editor, 242
vim editor, 204-206
relative line addressing (ex), 62
relative pathnames, 6
renaming buffer (ex), 66
repeating commands, 29-30
:g command for (example), 96
global substitutions, 83
pattern searches, 42, 44
searching numbered buffers, 53
replacing text, 16, 19-22
by characters, 21
globally, 73-98
confirming substitutions, 74
context sensitivity, 75
replacement-string metacharacters, 80-82
substitution tricks, 83-84
by lines, 20-22
searching and, 43
by words, 19-20
repositioning screen, 37
:resize command (nvi), 158
:resize (:res) command (vim), 199
:resize-window command (vile), 235
:restore-window command (vile), 235
RETURN key
moving with, 13, 39
newlines in insert mode, 14
:reverse-incremental-search command (vile), 247
:rew, :rewind commands (ex), 69
right margin, setting, 15
right/left scrolling, 148
elvis editor, 180
nvi editor, 163
vile editor, 247
vim editor, 212
rm command (UNIX), 10
ruler option, 150
S[ Top ]
-s option (elvis), 166
-s, -S options (nvi), 155-156
-s option (vile), 230
-s option (vim), 194-195
\s, \S metacharacters, 205, 242
S, s (substitute) commands, 22, 32
:s (substitute) command (ex), 58, 73-74
context-sensitive replacement, 75
pattern-matching examples, 84-98
POSIX bracket expressions, 79-80
replacement-string metacharacters, 80-82
search-pattern metacharacters, 77-79
substitution tricks, 83-84
vile editor, 254
:safer command (elvis), 185
:sall (:sa) command (elvis), 169
:save-window command (vile), 235
saving commands, 108-121
saving edits, 8-10, 65-67
appending to saved files, 66
iterating through list of files, 114
preserving the buffer, 52
saving parts of files, 66
troubleshooting, 9-10
scope keyword (ctags), 142
screen editors, 3
screens
left-right scrolling, 148
elvis editor, 180
nvi editor, 163
vile editor, 247
vim editor, 212
moving cursor (see moving the cursor)
multiwindow editing, 137-138
elvis editor, 168-171
nvi editor, 157-158
vile editor, 233-235
vim editor, 197-201
navigating (see moving the cursor)
redrawing, 38
repositioning, 37
scrolling, 37
setting number of lines shown, 101
scripts, ex, 121-127
:scroll-next-window-down, -up commands (vile), 235
scrollbars, xvile, 239
scrolling, 37
scrolling right/left, 148
elvis editor, 180
nvi editor, 163
vile editor, 247
vim editor, 212
searchincr option (nvi), 148, 162, 247
searching
for class of words, 85
for files (vim), 221
metacharacters for, 77-79
numbered buffers, 53
searching for patterns, 40-44
configuration options for, 103
ex commands for, 62, 64
global pattern-matching rules, 76-84
examples, 84-98
POSIX bracket expressions, 79-80
replacement-string metacharacters, 80-82
search-pattern metacharacters, 77-79
substitution tricks, 83-84
incremental searching (vi clones), 148
nvi editor, 162
vile editor, 247
vim editor, 211
making case-insensitive, 101
matching brackets, 130
opening files at specific place, 50
replacing text and (see replacing text)
within lines, 43
wrapping searches, 41, 43
sections, moving by, 40
security, elvis, 185
sed stream editor, 127
selecting text with xvile, 240
semicolon (;)
for line ranges (ex), 64
repeat search command, 44
sentences
delimiters for, 40
moving by, 40
session files, elvis, 167
:set command (ex), 100-102
commands in .exrc files, 102
list of options for, 276-294
viewing current options, 101
:sh (create shell) command (ex), 10, 104
SHELL environment variable (vim), 195
shell, UNIX, 104
shell option (vim), 195, 215
shellpipe option (vim), 196, 215
shellredir option (vim), 196
shmode mode (vile; example), 255
:show-history command (vile), 244
:show-tagstack command (vile), 245
:show-commands command (vile), 231
showmode option, 150, 212
:shrink-window command (vile), 235
sidescroll option (nvi), 163
sidescroll value, 149, 180, 212
sideways scrolling, 148
elvis editor, 180
nvi editor, 163
vile editor, 247
vim editor, 212
slash (/)
[/, ]/ (matching) commands (vim), 224
pathname separator, 6
referring to marks (vile), 248
search command, 5, 40
opening files at specific place, 50
:slast (:sl) command (elvis), 169
smartindent option (vim), 220
:snew (:sne) command (elvis), 169
:sNext (:sN) command (elvis), 169
:snext (:sn) command (vim), 199
:so command (ex), 102
Solaris vi
command mode tag commands, 265
set command options, 276-280
tag stacks, 132, 143-145
word abbreviations, 109
sort command (UNIX), 105
sorting text blocks (example), 125
source code editing, 127-132
indentation control, 127-129
matching brackets, 130
using tags, 131, 140-145
spaces (see whitespace)
Split button (elvis), 174
:split (:sp) command (elvis), 169
:split command (vile), 233
:split (:sp) command (vim), 197-198
:split-current-window command (vile), 233, 235
:srewind (:sre) command (elvis), 169
:stack (:stac) command (elvis), 178
stacks, tags, 143-145
elvis editor, 178
nvi editor, 160-162
Solaris vi, 132, 143-145
vile editor, 245
vim editor, 208
:stag (:sta) command (elvis), 169
:stag (:sta) command (vim), 199
starting vi (see invoking vi)
status line (see prompt line)
stevie editor, 165, 192
stopshell option (elvis), 175
stringfont display mode (elvis), 183
struct keyword (ctags), 141
:stselect (:sts) command (vim), 209
substitute (:s) command (ex), 58, 73-74
context-sensitive replacement, 75
pattern-matching examples, 84-98
POSIX bracket expressions, 79-80
replacement-string metacharacters, 80-82
search-pattern metacharacters, 77-79
substitution tricks, 83-84
vile editor, 254
substituting text (see changing text)
suffixes option (vim), 207
:sview (:sv) command (vim), 198
switching database items (example), 94
switching words (example), 110, 113
syntax display mode (elvis), 185
syntax highlighting, 152
elvis display modes, 182, 185-188
vile editor, 251
vim display modes, 216
syntax.vim file, 216
system failure, recovering after, 51
T[ Top ]
:t (copy) command (ex), 59
\t metacharacter, 205
-t option (elvis), 166
-t option (nvi), 156
-t option (vile), 231
-t option (vim), 196
T (search line) command, 44
t (search line) command, 43
ta, tag commands (nvi), 161
:Ta, Tag commands (nvi), 158, 161
:ta, tag commands (Solaris vi), 143
:tag command, 143-145, 189
:tag (:ta) command (elvis), 178
:tag command (ex), 131
:tag (:ta) command (vile), 245
:tag (:ta) command (vim), 208
tag stacks, 143-145
elvis editor, 178
nvi editor, 160-162
Solaris vi, 132, 143-145
vile editor, 245
vim editor, 208
tagignorecare option (vile), 246
taglength option (nvi), 161
taglength option (vile), 246
taglength (tl) option (elvis), 179
taglength (tl) option (Solaris vi), 143
taglength (tl) option (vim), 210
:tagp, :tagpop commands (nvi), 161
tagpath option (elvis), 179
tagpath option (Solaris vi), 143
tagprg option (elvis), 189
tagrelative option (vile), 246
tagrelative option (vim), 210
:tags command (Solaris vi), 143
:tags command (vim), 209
tags file format, 141-142, 161
tags option (elvis), 179
tags option (nvi), 161
tags option (Solaris vi), 143
tags option (vile), 246
tags option (vim), 210
tagstack option (elvis), 179
tagstack option (Solaris vi), 143
:tagt, :tagtop commands (nvi), 161
tagword option (vile), 246
TERM environment variable, 6, 195
term option (vim), 195
termcap entries, 7, 100
"Termcap entry too long" message, 7
termcap library, 252
terminal type, 6
terminals, intelligent vs. dumb, 18
terminfo entries, 7, 100
text, 35
case conversions, 22, 82
copying, 28-29
copying (yank-and-put), 16
deleting, 16, 23-26, 44
by characters, 12, 25
with ex editor, 62
by lines, 24
named buffers for, 29, 52-54, 71
numbered buffers for, 27, 52
recovering deletions, 52
undoing deletions, 26
by words, 23
editing commands (review), 34
filtering through UNIX commands, 105-108
finding and deleting parentheses, 114
indentation control, 127-129
inserting, 31-32
a (append) command, 16, 19
handling long insertions, 30, 115, 147, 162, 180, 211, 247
in insert mode, 8, 12
moving (delete-and-put), 16, 26
switching database items (example), 94
reformatting (vile), 257
replacing (changing), 16, 19-22, 43
globally, 73-98
searching for (see pattern searching)
transposing characters, 27
(see also characters; lines; words)
text blocks
filtering through UNIX commands, 105-108
moving by patterns, 86
range of lines (ex), 60, 63
saving parts of files, 66
sorting (example), 125
text blocks, moving by, 15, 39-40
text editors, 3
tilde (~)
:~ (substitute using last search pattern) command (ex), 83
along left screen margin, 6
case conversion command, 22
as last replacement text, 79
metacharacter, 81, 206
tl (taglength) option (elvis), 179
tl (taglength) option (Solaris vi), 143
tl (taglength) option (vim), 210
:tlast (:tl) command (vim), 209
/tmp (special filename, nvi), 163
:tNext (:tN) command (vim), 209
:tnext (:tn) command (vim), 209
:toggle-buffer-list command (vile), 235
toggle options (ex), setting, 100
toolbar, elvis, 174
:tprevious (:tp) command (vim), 209
transposing characters, 27
transposing words, 28
transposing words (example), 110, 113
:trewind (:tr) command (vim), 209
troff
alphabetizing glossary (example), 125
converting glossary to (example), 112
put emboldening codes around words, 114
troff formatting package, 4
troubleshooting
deleting text, 26
opening files, 6-8
saving edits, 9-10
:tselect (:ts) command (vim), 209
type-over (see c command)
U[ Top ]
<rs>U metacharacter, 82
<rs>u metacharacter, 82
-u option (vim), 194-195
-U option (vim), 194, 197
u (undo) command, 26, 30-31
buffer recovery, 53
U (undo) command, 26, 31
undoing, 30-31
infinitely (vi clones), 147
elvis editor, 179
nvi editor, 162
vile editor, 246
vim editor, 211
recovering deletions, 26, 52
text deletions, 26
undolevels option (elvis), 179
undolevels option (vim), 211
undolimit option (vile), 246
UNIX commands
executing, 104-108
"Unknown terminal type" message, 7
updatecount option (vim), 196
uppercase, converting to lowercase, 22, 82
/usr/tmp directory, 10
V[ Top ]
-V option (elvis), 166
-v option (vile), 231
v, V commands (elvis block mode), 180
v, V commands (vim block mode), 212
/var/tmp directory, 10
variablefont display mode (elvis), 183
versions of vi (see clones, vi)
vertical bar (|)
\| metacharacter, 204, 242
alternation metacharacter, 139, 159
for combining ex commands, 64
cursor movement command, 39
:vi command (ex), 59
vi command (UNIX), 5
command-line options, 49-52, 265
editing multiple files, 68
vi commands, 4-5, 12
bottom-line, 5
command quick reference, 261-266
general form of, 20
numeric arguments for, 14, 32
repeating (see repeating commands)
running when starting vi, 49
undoing (see undoing)
"VI Powered" logo, 300
vi text editor, 3
clones of (see clones, vi)
customizing editing environment, 100-104
emacs editor vs., 303
filtering text with, 106
Internet and, 299-306
quotes about, 306
Solaris vi (see Solaris vi)
starting (see invoking vi)
view command (UNIX), 51
:view-file command (vile), 235
view mode, 7
vi.exrc file (nvi), 157
VILE_HELP_FILE environment variable (vile), 232
.vile.keywords file (vile), 251
VILE_STARTUP_FILE environment variable (vile), 233
VILE_STARTUP_PATH environment variable (vile), 232
vile (vi clone), 52, 229-258
documentation and online help, 231
editing model, 253
extended regular expressions, 242
extension languages, 137
feature summary, 152
important command-line arguments, 230-231
improvements over vi, 244-250
infinite undo facility, 148
initialization of, 232
interesting features, 253-257
line length, 147
mode indicators, 150
multiwindow editing, 233-235
obtaining source code, 257
procedure language for, 255
programming assistance, 250-252
set command options (list), 290-294
sideways scrolling, 149
tag stacks, 245
word abbreviations, 109
vile-c-filt program, 251
VILEINIT environment variable (vile), 232
.vilemenu file (vile), 241
.vilemenu file, 232
vim (vi clone), 192-228
documentation and online help, 195
extended regular expressions, 204-206
extension languages, 137
feature summary, 152
GUI version of, 193, 197
important command-line arguments, 193-194
improvements over vi, 206-214
infinite undo facility, 148
initialization of, 195-197
interesting features, 219-226
line length, 147
mode indicators, 150
multiwindow editing, 197-201
obtaining source code, 226
programming assistance, 214-218
set command options (list), 284-290
sideways scrolling, 149
tag stacks, 208
word abbreviations, 109
viminfo file, 197
VIMINIT environment variable (vim), 196
.vimrc file (vim), 195
visual (block) mode, 149
elvis editor, 180
vile editor, 248
vim editor, 212
visual match facility (vile), 247
"Visual needs addressable cursor or upline capability" message, 7
:viusage command (nvi), 156
:w (write) command, 51
W[ Top ]
W (move word) command, 15
w (move word) command, 15
-w option (nvi), 156
\w, \W metacharacters, 242
:w (write) command (ex), 8, 65
renaming buffer, 66
saving parts of files, 66
:w! command, 65
:wall (:wa) command (vim), 199
web sites for vi, 299-302
whitespace
deleting words and, 24
indentation, 127-129
newline characters, 14, 147
sentence delimiters, 40
smart indenting (vim), 220
spaces in filenames, 6, 57
wildchar option (vim), 207
:window (:wi) command (elvis), 169
window option, 101
wm (wrapmargin) option, 15, 103
disabling for long insertions, 115
repeating long insertions, 30
word abbreviations, 108
words, 35
deleting by, 23, 26
deleting parentheses around (example), 114
moving by, 15, 40
replacing (changing), 19-20
searching for general class of, 85
to start/end of (see characters)
transposing, 28, 110, 113
troff emboldening codes around, 114
(see also characters; lines; text)
:wquit command (elvis), 170
wrap option (elvis, vim), 149
wrapmargin (wm) option, 15, 103
disabling for long insertions, 115
repeating long insertions, 30
wrapping searches, 41, 43
wrapscan option, 43, 50, 104
write-hook option (vile), 256
write permission, 7, 9
writing the buffer, 5
autowrite and autosave options, 52
overriding read-only mode, 51
(see also saving edits)
X[ Top ]
X (delete character) command, 26
x (delete character) command, 25, 27
X resources for elvis, 176
:x (write and quit) command (ex), 65
X11 interface (elvis), 167, 171, 175
X11 interface (vile), 232, 235, 252
xscrollbar option (elvis), 176
xvile editor, 235-242
XVILE_MENU environment variable (vile), 232
Y[ Top ]
Y (yank line) command, 28
y (yank) command, 16, 28
examples of use, 33, 48
with named buffers, 29, 52-54, 71
numbered buffers for, 27, 52
yy command, 28
:y (yank) command (ex), 71
yanking text, 16
named buffers for, 29, 52-54, 71
numbered buffers for, 27, 52
Z[ Top ]
z command, 37
-Z option (vim), 194
Zintz, Walter, 96
zl, zh, zs, ze (scroll) commands (vim), 212
ZZ (quit vi) command, 8
Zurück zu Learning the vi Editor