Linux third week (9.21-9.27) Learning notes

Source: Internet
Author: User

First, the basic operation of Vim.

Normal mode

The 1.h key moves the cursor 2 to the left. The J key moves the cursor 3 down. The K key moves up the cursor 4. L key to move the cursor to the right

5.x Key Delete the character of the cursor position 6.i key Insert text 7. DW The cursor moves to the beginning of the word and deletes the entire word

8.[number] +[command]+[object]

The 9.P key resets the character in the buffer at the cursor 10.R +[letter] to replace the single character 11 at the wrong cursor. [Number]+ C + [object] Change command, CW change Word, C $ change bank.

11.CTRL+G displays the number of rows and file information where the current cursor is located. shift+g jumps to the end line; [Number of rows]+shift+g jumps to the specified number of rows.]

/+ [XXXX] search for the specified field from the back, N continue to find the last lookup field; shift+ N finds 14 from the opposite direction. +[XXXX] search for the specified field from the back forward.

(The % key cursor is selected]}) after parentheses, press to see the corresponding brackets 16. : S/old/new Replacement

Linux third week (9.21-9.27) Learning notes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.