Movement on the Current Line by line number G 3.4.. More Command Combinations deletions recovering from numbered buffers 2.3.5.4.. Recovering Deletions display current line number ^G 3.4
Trang 1By Linda Lamb; ISBN 0-937175-67-6, 173 pages.
Fifth Edition, August 1994.
(See the catalog page for this book.)
Search the text of Learning the vi Editor
Index
A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y
Table of Contents
Preface to the 5th Edition
Preface
Chapter 1: The vi Text Editor
Chapter 2: Simple Editing
Chapter 3: Moving Around in a Hurry
Chapter 4: Beyond the Basics
Chapter 5: Introducing the ex Editor
Chapter 6: Global Replacement
Chapter 7: Advanced Editing
Appendix A: Quick Reference
Appendix B: Setting Environment Options
Appendix C: ex commands
Appendix D: Problem Checklist
Copyright © 1998 O'Reilly & Associates All Rights Reserved.
http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/ [2/6/2001 10:03:04 PM]
Trang 2Full Text Search
Results report format:
Search for
Copyright © 1998 O'Reilly & Associates All Rights Reserved.
http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/search/vsrch.htm [2/6/2001 10:03:06 PM]
Expanded
Reset search form
Trang 3A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y
Index: A
append
to existing files (:w >>) : 5.3.3 Appending to a Saved File
autowrap
2.1 vi Commands
2.2.3 Movement Within a Line
2.3.8.1 Repeat
7.1.4 Some Useful Options
A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y
Copyright © 1998 O'Reilly & Associates, Inc All Rights Reserved
http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_a.htm [2/6/2001 10:03:09 PM]
Trang 4A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y
Index: B
buffers
recovering numbered
2.3.5.4 Problems with Deletions 4.3.1 Recovering Deletions
yanking to named
4.3 Making Use of Buffers 4.3.2 Yanking to Named Buffers
A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y
Copyright © 1998 O'Reilly & Associates, Inc All Rights Reserved
http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_b.htm [2/6/2001 10:03:09 PM]
Trang 5A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y
Index: C
change
line (cc)
2.3.3.2 Lines 2.4 More Ways to Insert Text
text (c)
1 The vi Text Editor 2.3.3 Changing Text 2.6 Review of Basic vi Commands 4.1 More Command Combinations
word (cw)
2.3.3 Changing Text 2.3.3.1 Words
command mode
1 The vi Text Editor
2.1 vi Commands
copy
text (y)
1 The vi Text Editor 2.3 Simple Edits 2.3.7 Copying Text
http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_c.htm (1 of 3) [2/6/2001 10:03:10 PM]
Trang 62.6 Review of Basic vi Commands 4.1 More Command Combinations
(see also yank) (see also
(see also (see also (see also (see also (see also (see also
crash
cursor movement
by character (h, j, k, l)
2.2.1 Single Movements 2.6 Review of Basic vi Commands
by line (+, -)
3.1.5 Movement by Line 3.1.5.1 Movement on the Current Line
by line number (G)
3.4 Movement by Line Number 3.4.1 The G (Go To) Command if
by word (w, b)
2.2.4 Movement by Text Blocks 2.6 Review of Basic vi Commands
http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_c.htm (2 of 3) [2/6/2001 10:03:10 PM]
Trang 7within a line (0, $)
2.2.3 Movement Within a Line 2.6 Review of Basic vi Commands
A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y
Copyright © 1998 O'Reilly & Associates, Inc All Rights Reserved
http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_c.htm (3 of 3) [2/6/2001 10:03:10 PM]
Trang 8A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y
Index: D
delete
line (dd) : 2.3.5.2 Lines
text (d)
2.3.5 Deleting Text Chapter 2.3.7 Copying Text
2.6 Review of Basic vi Commands 4.1 More Command Combinations
deletions
recovering
from numbered buffers
2.3.5.4 Problems with Deletions 4.3.1 Recovering Deletions
display
current line number (^G)
3.4 Movement by Line Number
http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_d.htm (1 of 2) [2/6/2001 10:03:12 PM]
Trang 93.4.1 The G (Go To) Command if
line numbers (:set nu)
2.2.3 Movement Within a Line 3.4 Movement by Line Number 3.4.1 The G (Go To) Command if
dumb terminal
2.3.1 Inserting New Text
2.3.5.2 Lines
A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y
Copyright © 1998 O'Reilly & Associates, Inc All Rights Reserved
http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_d.htm (2 of 2) [2/6/2001 10:03:12 PM]
Trang 10A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y
Index: E
editor
line
1 The vi Text Editor 5.1 ex Commands
(see also ex editor) (see also
screen
1 The vi Text Editor
(see also vi editor)
ex commands
combining with vertical bar
5.2.7 Combining ex Commands 7.3.3 Protecting Keys from Interpretation by ex
context-sensitive replacement
6 Global Replacement
http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_e.htm (1 of 4) [2/6/2001 10:03:13 PM]
Trang 116.2 Context-sensitive Replacement
display line numbers (:set nu)
2.2.3 Movement Within a Line
3.4 Movement by Line Number
3.4.1 The G (Go To) Command if
http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_e.htm (2 of 4) [2/6/2001 10:03:13 PM]
Trang 12pattern matching : 6.3 Pattern-matching Rules
quick reference to
A Quick Reference
C ex commands
quit without saving edits (:q!)
1.1.2 Problems Opening Files
1.2 Quitting Without Saving Edits
5.3 Saving and Exiting Files
set ignorecase (:set ic)
7.1.1 The :set Command
7.1.4 Some Useful Options
set vi options
7.1 Customizing vi
7.1.1 The :set Command
set wrapmargin (:set wm=)
2.1 vi Commands
2.2.3 Movement Within a Line
2.3.8.1 Repeat
substitute (:s)
http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_e.htm (3 of 4) [2/6/2001 10:03:13 PM]
Trang 135.1 ex Commands
6 Global Replacement
ex editor
1 The vi Text Editor
5 Introducing the ex Editor
(see also
.exrc file (vi environment)
7.1 Customizing vi
7.1.2 The exrc File
A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y
Copyright © 1998 O'Reilly & Associates, Inc All Rights Reserved
http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_e.htm (4 of 4) [2/6/2001 10:03:13 PM]
Trang 14A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y
Index: F
files
editing multiple
5.5 Editing Multiple Files 5.5.2 Calling In New Files
opening
(see opening a file)
(see
quit and save edits
1.1.3 Saving and Quitting a File 1.2 Quitting Without Saving Edits 1.2.1 Problems Saving Files
2.6 Review of Basic vi Commands 5.3 Saving and Exiting Files
quit without saving edits
1.1.2 Problems Opening Files 1.2 Quitting Without Saving Edits 2.6 Review of Basic vi Commands 5.3 Saving and Exiting Files
http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_f.htm (1 of 2) [2/6/2001 10:03:14 PM]
Trang 15save as new : 5.3.1 Renaming the Buffer
saving
1.1.3 Saving and Quitting a File 5.3 Saving and Exiting Files
(see also
A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y
Copyright © 1998 O'Reilly & Associates, Inc All Rights Reserved
http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_f.htm (2 of 2) [2/6/2001 10:03:14 PM]
Trang 16A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y
Index: G
context-sensitive
6 Global Replacement 6.2 Context-sensitive Replacement
reverse word order
6.4.3 More Examples 6.4.4.2 Switching Items in a Database
simple
6 Global Replacement 6.2 Context-sensitive Replacement
http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_g.htm (1 of 2) [2/6/2001 10:03:15 PM]
Trang 17whole word
6.4 Pattern-matching Examples 6.4.3 More Examples
A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y
Copyright © 1998 O'Reilly & Associates, Inc All Rights Reserved
http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_g.htm (2 of 2) [2/6/2001 10:03:15 PM]
Trang 18A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y
Index: H
A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y
Copyright © 1998 O'Reilly & Associates, Inc All Rights Reserved
http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_h.htm [2/6/2001 10:03:16 PM]