TAILIEUCHUNG - Oreilly learning the vi Editor phần 10

Sao chép Xóa đối tượng Thay đổi cw dw w 1 từ 2 từ, không kể dấu chấm câu hoặc C2W 2dW 2cW d2w 2yW hoặc 3 từ hoặc quay trở lại 3Cb y2W C3b hoặc 3yb D3b 3dB hoặc dòng 1 hoặc cc y3b yy hoặc dd Y để cuối dòng c $ hoặc C hoặc d và d $ $ để Bắt đầu của dòng d0 c0 y0 rx hoặc nhân vật duy nhất h X l hoặc năm nhân vật 5s 5x 5yl Bảng : | Chapter 2 Moving the Cursor 41 PREVIOUS Chapter 2 Simple Editing NEXT Moving the Cursor You may spend only a small amount of time in an editing session adding new text in insert mode much of the time you will be making edits to existing text. In command mode you can position the cursor anywhere in the file. Since you begin all basic edits changing deleting and copying text by placing the cursor at the text that you want to change you want to be able to move the cursor to that place as quickly as possible. There are vi commands to move the cursor Up down left or right - one character at a time. Forward or backward by blocks of text such as words sentences or paragraphs. Forward or backward through a file one screen at a time. In Figure an underscore marks the present cursor position. Circles show movement of the cursor from its current position to the position that would result from various vi commands. Figure Sample movement commands Figure Single Movements The keys h j k and l right under your fingertips will move the cursor h left one space. j down one line. k up one line. http documents oreilly unix vi 1 of 4 2 6 2001 10 04 49 PM Chapter 2 Moving the Cursor l right one space. You can also use the cursor arrow keys - 1 t - or the RETURN and BACKSPACE keys but they are out of the way and the arrow keys are not supported by all terminals. At first it may seem awkward to use letter keys instead of arrows for cursor movement. After a short while though you ll find it is one of the things you ll like best about vi - you can move around without ever taking your fingers off the center of the keyboard. Before you move the cursor press ESC to make sure that you are in command mode. Use h j k and l to move forward or backward in the file from the current cursor position. When you have gone as far as possible in one direction you hear a beep and the cursor stops. For example once you re at the .

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.