tailieunhanh - Oreilly learning the vi Editor phần 9

Bảng trình bày một ít các lệnh bạn có thể Thực hiện bằng cách kết hợp các lệnh c, d, và VỚI văn bản khác nhau và các đối tượng. Hai dòng cuối cùng hiển thị các lệnh bổ sung để chỉnh sửa. Bảng và Bảng liệt kê một số lệnh cơ bản khác. Bảng : Các lệnh Text Edit | Chapter 2 Review of Basic vi Commands 41 PREVIOUS Chapter 2 Simple Editing NEXT Review of Basic vi Commands Table presents a few of the commands you can perform by combining the commands c d and y with various text objects. The last two rows show additional commands for editing. Table and Table lists some other basic commands. Table Edit Commands Text Object Change Delete Copy 1 word cw dw yw 2 words not counting punctuation 2cW or c2W 2dW or d2W 2yW or y2W 3 words back 3cb or c3b 3db or d3b 3yb or y3b 1 line cc dd yy or Y to end of line c or C d or D y to beginning of line c0 d0 y0 single character r x or X yl or yh five characters 5s 5x 5yl Table Movement Movement Commands - V h j k l forward by word w or W backward by word b or B to end of line to beginning of line 0 Table Other Operations Operations Commands place text from buffer P or p start vi open file if specified vi file save edits quit file ZZ no saving of edits quit file q You can get by in vi using only the commands listed in Table Table and Table . However in order to harness the real power of vi and increase your own productivity you will need more tools. The following chapters describe those tools. http documents oreilly unix vi 1 of 2 2 6 2001 10 04 35 PM Chapter 2 Review of Basic vi Commands PREVIOUS Joining Two Lines with J KOMI BOOK INDEX NEXT 3. Moving Around in a Hurry UBURT HOME I UNIX POWER TỮOỈỈ I UNIX IN ỉ HƯTỈHELL I LEARNING VI I ỈED t A WK I KORN SIELl I LEUNIIN UNIX http documents oreilly unix vi 2 of 2 2 6 2001 10 04 35 PM Chapter 2 Joining Two Lines with J 41 PREVIOUS Chapter 2 Simple Editing NEXT Joining Two Lines with J J Sometimes while editing a file you will end up with a series of short lines that are difficult to scan. When you want to merge two lines into one position the cursor anywhere on the first line and press J to join

TỪ KHÓA LIÊN QUAN