Learning the vi and VIM

494 492 0
Learning the vi and VIM

Đ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

Free ebooks ==> www.ebook777.com www.ebook777.com Free ebooks ==> www.ebook777.com Free ebooks ==> www.ebook777.com Learning the vi and Vim Editors www.ebook777.com Free ebooks ==> www.ebook777.com Other resources from O’Reilly Related titles oreilly.com vi Editor Pocket Reference Unix in a Nutshell Classic Shell Scripting The Productive Programmer Unix Power Tools Mac OS X for Unix Geeks oreilly.com is more than a complete catalog of O’Reilly books You’ll also find links to news, events, articles, weblogs, sample chapters, and code examples oreillynet.com is the essential portal for developers interested in open and emerging technologies, including new platforms, programming languages, and operating systems Conferences O’Reilly Media brings diverse innovators together to nurture the ideas that spark revolutionary industries We specialize in documenting the latest tools and systems, translating the innovator’s knowledge into useful skills for those in the trenches Visit conferences.oreilly.com for our upcoming events Safari Bookshelf (safari.oreilly.com) is the premier online reference library for programmers and IT professionals Conduct searches across more than 1,000 books Subscribers can zero in on answers to time-critical questions in a matter of seconds Read the books on your Bookshelf from cover to cover or simply flip to the page you need Try it today for free Free ebooks ==> www.ebook777.com SEVENTH EDITION Learning the vi and VimTomcat Editors The Definitive Guide Jason Brittain F Darwin Arnold Robbins, Elbert Hannah,and andIan Linda Lamb Beijing • Cambridge • Farnham • Kưln • Sebastopol • Taipei • Tokyo www.ebook777.com ™ Free ebooks ==> www.ebook777.com Learning the vi and Vim Editors, Seventh Edition by Arnold Robbins, Elbert Hannah, and Linda Lamb Copyright © 2008 Arnold Robbins, Elbert Hannah, and Linda Lamb All rights reserved Printed in the United States of America Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472 O’Reilly books may be purchased for educational, business, or sales promotional use Online editions are also available for most titles (http://safari.oreilly.com ) For more information, contact our corporate/ institutional sales department: 800-998-9938 or corporate@oreilly.com Editor: Andy Oram Production Editor: Sarah Schneider Copyeditor: Genevieve d’Entremont Proofreader: Sarah Schneider Indexer: Joe Wizda Cover Designer: Karen Montgomery Interior Designer: David Futato Illustrator: Robert Romano Printing History: July 2008: November 1998: October 1990: June 1988: August 1987: April 1986: February 1986: Seventh Edition Sixth Edition Fifth Edition Fourth Edition Third Edition Second Edition First Edition Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of O’Reilly Media, Inc Learning the vi and Vim Editors, 7th Edition, the image of a tarsier, and related trade dress are trademarks of O’Reilly Media, Inc Many of the designations uses by manufacturers and sellers to distinguish their products are claimed as trademarks Where those designations appear in this book, and O’Reilly Media, Inc was aware of a trademark claim, the designations have been printed in caps or initial caps While every precaution has been taken in the preparation of this book, the publisher and authors assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein ISBN: 978-0-596-52983-3 [M] 1215018617 Free ebooks ==> www.ebook777.com To my wife, Miriam, for your love, patience, and support —Arnold Robbins, Sixth and Seventh Editions www.ebook777.com Free ebooks ==> www.ebook777.com Free ebooks ==> www.ebook777.com Table of Contents Preface xiii Part I Basic and Advanced vi The vi Text Editor A Brief Historical Perspective Opening and Closing Files Quitting Without Saving Edits Simple Editing 13 vi Commands Moving the Cursor Simple Edits More Ways to Insert Text Joining Two Lines with J Review of Basic vi Commands 13 14 18 30 31 32 Moving Around in a Hurry 35 Movement by Screens Movement by Text Blocks Movement by Searches Movement by Line Number Review of vi Motion Commands 10 35 38 39 43 44 Beyond the Basics 47 More Command Combinations Options When Starting vi Making Use of Buffers Marking Your Place Other Advanced Edits Review of vi Buffer and Marking Commands 47 48 51 52 53 53 vii www.ebook777.com Free ebooks ==> www.ebook777.com Introducing the ex Editor 55 ex Commands Editing with ex Saving and Exiting Files Copying a File into Another File Editing Multiple Files Global Replacement 71 Confirming Substitutions Context-Sensitive Replacement Pattern-Matching Rules Pattern-Matching Examples A Final Look at Pattern Matching 72 73 74 81 89 Advanced Editing 95 Customizing vi Executing Unix Commands Saving Commands Using ex Scripts Editing Program Source Code 55 58 63 65 65 95 99 103 114 120 Introduction to the vi Clones 125 And These Are My Brothers, Darrell, Darrell, and Darrell Multiwindow Editing GUI Interfaces Extended Regular Expressions Enhanced Tags Improved Facilities Programming Assistance Editor Comparison Summary Nothing Like the Original A Look Ahead 125 126 127 128 129 134 138 140 141 141 Part II Vim Vim (vi Improved): An Introduction 145 Overview Where to Get Vim Getting Vim for Unix and GNU/Linux Getting Vim for Windows Environments Getting Vim for the Macintosh Environment Other Operating Systems viii | Table of Contents 146 150 151 156 157 157 ... Other vi Clones, describes three other popular vi clones: nvi, elvis, and vile Chapter 16, nvi: New vi, Chapter 17, Elvis, and Chapter 18, vile: vi Like Emacs, cover the various vi clones—nvi,... www.ebook777.com Appendix A, The vi, ex, and Vim Editors, lists all vi and ex commands, sorted by function It also provides an alphabetical list of ex commands Selected vi and ex commands from Vim are also included... Linux) Part II, Vim, describes Vim, the most popular vi clone in the early part of the 21st century Chapter 9, Vim (vi Improved): An Introduction, provides a general introduction to Vim, including

Ngày đăng: 12/03/2018, 10:03

Mục lục

  • Learning the vi and Vim Editors

  • Preface

    • Scope of This Book

    • How the Material Is Presented

      • Discussion of vi Commands

      • What You Need to Know Before Starting

      • About the Previous Editions

      • Preface to the Seventh Edition

        • What’s New

        • Acknowledgments from the Sixth Edition

        • Acknowledgments for the Seventh Edition

        • Part I. Basic and Advanced vi

          • Chapter 1. The vi Text Editor

            • A Brief Historical Perspective

            • Opening and Closing Files

              • Opening a File

              • Saving and Quitting a File

              • Quitting Without Saving Edits

                • Problems Saving Files

                • Moving the Cursor

                  • Single Movements

                  • Movement Within a Line

                  • Movement by Text Blocks

                  • Simple Edits

                    • Inserting New Text

                    • Moving Text

                      • Transposing two letters

                      • Repeating or Undoing Your Last Command

                        • Repeat

                        • More Ways to Insert Text

                          • Numeric Arguments for Insert Commands

                          • Joining Two Lines with J

                            • Problem Checklist

Tài liệu cùng người dùng

Tài liệu liên quan