TAILIEUCHUNG - Oreilly learning the vi Editor phần 8

Bạn đã vô tình phù hợp với trẻ con từ. Quay trở lại với bộ đệm lưu cuối cùng với: E!, bây giờ bạn hãy thử::.% S / con / trẻ em / g (. Lưu ý Đó có là một không gian sau khi-con) Nhưng lệnh này bỏ qua các con sự cố, Thái độ của nhà phân tích DSS là quan trọng đối với các lý do sau: | Chapter 4 Making Use of Buffers 41 PREVIOUS Chapter 4 Beyond the Basics NEXT Making Use of Buffers You have seen that while you are editing your last deletion d or x or yank y is saved in a buffer a place in stored memory . You can access the contents of that buffer and put the saved text back in your file with the put command p or P . The last nine deletions are stored by vi in numbered buffers. You can access any of these numbered buffers to restore any or all of the last nine deletions. Small deletions of only parts of lines are not saved in numbered buffers however. These deletions can only be recovered by using the p or P command immediately after you ve made the deletion. vi also allows you to place yanks copied text in buffers identified by letters. You can fill up to 26 a-z buffers with yanked text and restore that text with a put command at any time in your editing session. Recovering Deletions Being able to delete large blocks of text at a single bound is all very well and good but what if you mistakenly delete 53 lines that you need There is a way to recover any of your past nine deletions for they are saved in numbered buffers. The last delete is saved in buffer 1 the second-to-last in buffer 2 and so on. To recover a deletion type double quote identify the buffered text by number then give the put command. To recover your second-to-last deletion from buffer 2 type 2p The deletion in buffer 2 is placed after the cursor. If you re not sure which buffer contains the deletion you want to restore you don t have to keep typing np over and over again. If you use the repeat command . with p after u it automatically increments the buffer number. As a result you can search through the numbered buffers as follows etc. to put the contents of each succeeding buffer in the file one after the other. Each time you type u the restored text is removed when you type a dot . the contents of the next buffer is restored to your file. Keep typing u and

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.