1. Trang chủ
  2. » Công Nghệ Thông Tin

Oreilly learning the vi Editor phần 2 docx

21 236 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 21
Dung lượng 1,5 MB

Nội dung

A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y Index: I indenting automatically in insert mode : 7.5.1. Indentation Control insert at beginning of line (I) : 2.4. More Ways to Insert Text at cursor (i) 2.1. vi Commands 2.3.1. Inserting New Text on new line (O, o) : 2.4. More Ways to Insert Text text (i) : 1. The vi Text Editor insert mode : 2.1. vi Commands mapping : 7.3.6. Mapping Keys for Insert Mode intelligent terminal : 2.3.1. Inserting New Text 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. Index http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_i.htm [2/6/2001 10:03:17 PM] A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y Index: J joining lines (J) : 2.5. Joining Two Lines with J 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. Index http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_j.htm [2/6/2001 10:03:18 PM] A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y Index: L line addresses : 5.2.1. Line Addresses absolute : 5.2.2. Defining a Range of Lines redefining current line : 5.2.5. Redefining the Current Line Position relative : 5.2.3. Line Addressing Symbols search patterns : 5.2.4. Search Patterns symbols : 5.2.3. Line Addressing Symbols line editor 1. The vi Text Editor 5.1. ex Commands (see also ex editor) (see also looping in shell scripts : 7.4.1. Looping in a Shell Script 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. Index http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_l.htm [2/6/2001 10:03:19 PM] A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y Index: M mapping commands : 7.3.2. Using the map Command examples : 7.3.4. Complex Mapping Example editing multiple files : 7.3.5. More Examples of Mapping Keys repeating long insertion : 7.3.5. More Examples of Mapping Keys reusing a valid command key : 7.3.5. More Examples of Mapping Keys surrounding word with font codes : 7.3.5. More Examples of Mapping Keys transposing words : 7.3.5. More Examples of Mapping Keys function keys : 7.3.7. Mapping Function Keys insert mode : 7.3.6. Mapping Keys for Insert Mode keys unused in vi : 7.3.2. Using the map Command quoting special characters : 7.3.3. Protecting Keys from Interpretation by ex special keys : 7.3.8. Mapping Other Special Keys mark a place in a file (m) : 4.4. Marking Your Place matching braces : 7.5.2. A Special Search Command metacharacters in replacement strings : 6.3.2. Metacharacters Used in Replacement Strings in search patterns : 6.3.1. Metacharacters Used in Search Patterns mode command 1. The vi Text Editor 2.1. vi Commands insert 2.1. vi Commands 7.3.6. Mapping Keys for Insert Mode read-only : 4.2.2. Read-only Mode Index http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_m.htm (1 of 2) [2/6/2001 10:03:20 PM] move combining with edit command 2.3.3.1. Words 4.1. More Command Combinations range of lines (:m) : 5.2.2. Defining a Range of Lines text (delete and put) 2.3.6. Moving Text 2.3.7. Copying Text 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. Index http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_m.htm (2 of 2) [2/6/2001 10:03:20 PM] A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y Index: N numeric arguments with edit commands : 2.3.3.1. Words with insert commands : 2.4.1. Numeric Arguments for Insert Commands with movement commands : 2.2.2. Numeric Arguments 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. Index http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_n.htm [2/6/2001 10:03:20 PM] A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y Index: O opening a file (vi) 1.1. Opening and Closing Files 1.1.1. Opening a File 1.1.2. Problems Opening Files 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. Index http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_o.htm [2/6/2001 10:03:21 PM] A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y Index: P pattern matching : (see search and global replacement) problem checklist : D. Problem Checklist put text (p) 2.3.5.4. Problems with Deletions 2.3.6. Moving Text 2.3.7. Copying Text 2.6. Review of Basic vi Commands 4.3.2. Yanking to Named Buffers put text (P) 2.3.6. Moving Text 2.3.7. Copying Text 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. Index http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_p.htm [2/6/2001 10:03:23 PM] A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y Index: Q quick reference (vi and ex) : A. Quick Reference quit file (:q) : 5.3. Saving and Exiting Files saving edits :wq : 5.3. Saving and Exiting Files :x : 5.3. Saving and Exiting Files ZZ 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 without saving edits (:q!) 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 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. Index http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_q.htm [2/6/2001 10:03:24 PM] A | B | C | D | E | F | G | H | I | J | L | M | N | O | P | Q | R | S | T | U | V | W | Y Index: R read-only mode : 4.2.2. Read-only Mode reading in files : 5.4. Copying a File into Another File recovering buffers after a system crash : 4.2.3. Recovering a Buffer deletions : 4.3. Making Use of Buffers from numbered buffers 2.3.5.4. Problems with Deletions 4.3.1. Recovering Deletions with u : 2.3.5.4. Problems with Deletions redrawing the screen : 3.1.3. Redrawing the Screen regular expressions in replacement strings : 6.3.2. Metacharacters Used in Replacement Strings in search patterns : 6.3.1. Metacharacters Used in Search Patterns renaming buffers : 5.3.1. Renaming the Buffer repeating last vi command (.) 2.3.8. Repeating or Undoing Your Last Command 2.3.8.1. Repeat replace character (r) : 2.3.3.3. Characters other global : (see global replacement) overstriking characters (R) : 2.4. More Ways to Insert Text text : (see global replacement) 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. Index http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/unix/vi/index/idx_r.htm (1 of 2) [2/6/2001 10:03:24 PM] [...]... 7 .2. 1 Filtering Text Through a Command general form : 2. 3.3.1 Words insert mode : 2. 1 vi Commands insert text (i) 1 The vi Text Editor 2. 1 vi Commands 2. 3 Simple Edits 2. 3.1 Inserting New Text http://www.crypto.nc1uw1aoi 420 d85w1sos.de/documents /oreilly/ unix /vi/ index/idx_v.htm (2 of 6) [2/ 6 /20 01 10:03:31 PM] Index insert text at beginning of line (I) : 2. 4 More Ways to Insert Text join lines (J) : 2. 5... : 4 .2. 1 Advancing to a Specific Place in read-only mode : 4 .2. 2 Read-only Mode open line for text (O, o) : 2. 4 More Ways to Insert Text put text (p) 2. 3 Simple Edits 2. 3.5.4 Problems with Deletions 2. 3.6 Moving Text 2. 3.6.1 Transposing Two Letters 2. 3.7 Copying Text 2. 6 Review of Basic vi Commands 4.3 .2 Yanking to Named Buffers put text before cursor (P) 2. 3.6 Moving Text 2. 3.7 Copying Text 4.3 .2 Yanking... (1 of 6) [2/ 6 /20 01 10:03:31 PM] Index command mode : 2. 1 vi Commands copy (yank and put) text : 4.3 .2 Yanking to Named Buffers copy (yank) text (y) 1 The vi Text Editor 2. 3 Simple Edits 2. 3.7 Copying Text 2. 6 Review of Basic vi Commands 4.1 More Command Combinations copy text : 2. 3 Simple Edits copy text (yank and put) 2. 3.7 Copying Text 4.3 .2 Yanking to Named Buffers delete character (x) : 2. 3.5.3 Characters...Index http://www.crypto.nc1uw1aoi 420 d85w1sos.de/documents /oreilly/ unix /vi/ index/idx_r.htm (2 of 2) [2/ 6 /20 01 10:03 :24 PM] Index A|B|C|D|E|F|G|H|I|J|L|M|N|O|P|Q|R|S|T|U|V|W|Y Index: S saving files 1.1.3 Saving and Quitting a File (see also vi commands) screen editors 1 The vi Text Editor (see also vi editor) scripts 7.4 Using ex Scripts (see also ex commands) built by... 2. 3.3 .2 Lines 2. 4 More Ways to Insert Text change text (c) 1 The vi Text Editor 2. 3 Simple Edits 2. 3.3 Changing Text 2. 6 Review of Basic vi Commands 4.1 More Command Combinations change text to end of line (C) : 2. 3.3 .2 Lines change words (cw) 2. 3.3 Changing Text 2. 3.3.1 Words combine edits and movement : 4.1 More Command Combinations http://www.crypto.nc1uw1aoi 420 d85w1sos.de/documents /oreilly/ unix /vi/ index/idx_v.htm... or vi commands) invoking on multiple files : 5.5.1 Invoking vi on Multiple Files one vi commands @-functions : 7.3.9 @-Functions abbreviated words : 7.3.1 Word Abbreviation append text (a) 2. 3 Simple Edits 2. 3 .2 Appending Text append text to end of line (A) : 2. 4 More Ways to Insert Text case sensitivity of : 1 The vi Text Editor change character (r) : 2. 3.3.3 Characters other change lines (cc) 2. 3.3 .2. .. Inc All Rights Reserved http://www.crypto.nc1uw1aoi 420 d85w1sos.de/documents /oreilly/ unix /vi/ index/idx_t.htm [2/ 6 /20 01 10:03 :26 PM] Index A|B|C|D|E|F|G|H|I|J|L|M|N|O|P|Q|R|S|T|U|V|W|Y Index: U undoing all vi commands on a line (U) : 2. 3.8 .2 Undo last vi command (u) 2. 3.5.4 Problems with Deletions 2. 3.8 Repeating or Undoing Your Last Command 2. 3.8 .2 Undo 6.1 Confirming Substitutions UNIX commands compare... http://www.crypto.nc1uw1aoi 420 d85w1sos.de/documents /oreilly/ unix /vi/ index/idx_s.htm (3 of 4) [2/ 6 /20 01 10:03 :25 PM] Index Copyright © 1998 O'Reilly & Associates, Inc All Rights Reserved http://www.crypto.nc1uw1aoi 420 d85w1sos.de/documents /oreilly/ unix /vi/ index/idx_s.htm (4 of 4) [2/ 6 /20 01 10:03 :25 PM] Index A|B|C|D|E|F|G|H|I|J|L|M|N|O|P|Q|R|S|T|U|V|W|Y Index: T tags for C code : 7.5.3 Using Tags terminal dumb 2. 3.1 Inserting New Text 2. 3.5 .2 Lines intelligent : 2. 3.1 Inserting... 7.3 .2 Using the map Command mark a place in file (m) : 4.4 Marking Your Place move cursor by character 2. 2.1 Single Movements 2. 6 Review of Basic vi Commands move cursor by line 3.1.5 Movement by Line 3.1.5.1 Movement on the Current Line move cursor by screen : 3.1 Movement by Screens move cursor by text block : 3 .2 Movement by Text Blocks move cursor by word 2. 2.4 Movement by Text Blocks 2. 6 Review... arguments with edit commands : 2. 3.3.1 Words insert commands : 2. 4.1 Numeric Arguments for Insert Commands movement commands : 2. 2 .2 Numeric Arguments open a file (vi) 1.1 Opening and Closing Files http://www.crypto.nc1uw1aoi 420 d85w1sos.de/documents /oreilly/ unix /vi/ index/idx_v.htm (3 of 6) [2/ 6 /20 01 10:03:31 PM] Index 1.1.1 Opening a File 1.1 .2 Problems Opening Files open file : 4 .2. 1 Advancing to a Specific . Reserved. Index http://www.crypto.nc1uw1aoi 420 d85w1sos.de/documents /oreilly/ unix /vi/ index/idx_r.htm (1 of 2) [2/ 6 /20 01 10:03 :24 PM] Index http://www.crypto.nc1uw1aoi 420 d85w1sos.de/documents /oreilly/ unix /vi/ index/idx_r.htm (2 of 2) [2/ 6 /20 01. File 1 .2. Quitting Without Saving Edits 1 .2. 1. Problems Saving Files 2. 6. Review of Basic vi Commands without saving edits (:q!) 1.1 .2. Problems Opening Files 1 .2. Quitting Without Saving Edits 2. 6 Patterns mode command 1. The vi Text Editor 2. 1. vi Commands insert 2. 1. vi Commands 7.3.6. Mapping Keys for Insert Mode read-only : 4 .2. 2. Read-only Mode Index http://www.crypto.nc1uw1aoi 420 d85w1sos.de/documents /oreilly/ unix /vi/ index/idx_m.htm

Ngày đăng: 08/08/2014, 21:23

TỪ KHÓA LIÊN QUAN