TAILIEUCHUNG - Learning the vi Text Editor 6th phần 2

chèn (trở lại bản sao này nếu chèn không làm việc một cách chính xác). Bạn cũng có thể bật tắt wrapmargin như thế này:: thiết lập wm = 0 Trong phần , chúng tôi sẽ chỉ cho bạn một cách dễ dàng để ause giải pháp wrapmargin. Trong một số phiên bản của vi, lệnh CTRL-@ lặp đi lặp lại chèn gần đây nhất. CTRL-@ là đánh máy trong chế độ chèn và trở lại chế độ để chỉ huy. | insertion returning to this copy if the insertion doesn t work correctly . You can also turn off wrapmargin like this set wm 0 In Section we ll show you an easy way to ause the wrapmargin solution. In some versions of vi the command CTRL-@ repeats the most recent insertion. CTRL-@ is typed in insert mode and returns you to command mode. Undo II . . . . . -r As mentioned earlier you can undo your last command if you make an error. Simply press u. The cursor need not be on the line where the original edit was made. To continue the example above showing deletion of lines in the file practice Keystrokes Results u . . ith a screen editor you can scroll the page. move Che cursor. u undoes the last command and restores the deleted line. U the uppercase version of u undoes all edits on a single line as long as the cursor remains on that line. Once you move off a line you can no longer use U. Note that you can undo your last undo with u toggling between two versions of text. u will also undo U and U will undo any changes to a line including those made with u. A tip the fact that u can undo itself leads to a nifty way to get around in a file. If you ever want to get back to the site of your last edit simply undo it. You will pop back to the appropriate line. When you undo the undo you ll stay on that line. More Ways to Insert Text You have inserted text before the cursor with the sequence itext to be insertedESC You ve also inserted text after the cursor with the a command. There are other insert commands for inserting text at different positions relative to the cursor A Append text to end of current line. I Insert text at beginning of line. o Open blank line below cursor for text. O Open blank line above cursor for text. s Delete character at cursor and substitute text. S Delete line and substitute text. R Overstrike existing characters with new characters. All of these commands place you in insert mode. After inserting text remember to press ESC to escape

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.