Vim common skills Summary 1

Source: Internet
Author: User

My main blog: half an acre of fangtang

1. Repeat the previous operation in Normal Mode.Command

2. Cancel the previous operation and use it in normal mode.uCommand

3. Delete the entire row in Normal ModeddCommand, this command does not enter the insert mode after deleting the line

4. Delete the entire row in Normal ModeSCommand to enter the insert mode after deleting a row

5. delete a word in Normal ModedwCommand, this command does not enter the insert mode after deleting a word

6. delete a word in Normal ModecwCommand to delete a word and enter the insert mode

7. Delete the letters at the cursor position in normal mode.xCommand to delete letters without entering the insert mode

8. Delete the letters at the cursor position in normal mode.sCommand to delete letters and enter the insert mode

9. Insert the next line in the row where the cursor is located in Normal ModeoCommand to enter the insert mode

10. Insert the last line of the row where the cursor is located in normal modeOCommand to enter the insert mode

11. Insert the cursor at the next position in normal mode.aCommand to enter the insert mode

12. move the cursor to the position of the last letter at the end of the row.$Command, which does not enter the insert mode

13. move the cursor to the next position of the last letter at the end of the row for insertion.ACommand to enter the insert mode

14. move the cursor to the first position of the row for insertion.ICommand to enter the insert mode

15. repetitive operations within a large scale generally need to be performed in the command line mode.:normalFor example, to comment out all the code:%normal i//,:normalThe command moves the cursor to the beginning of the line in the selected area no matter where it is.:%normal i//And:%normal I//The results are the same,%Indicates the scope of all documents

16. indent all the ranges from the row where the cursor is located to the end of the file in Normal Mode>GCommand, which does not enter the insert mode

17. You can use:cd ...Command. This command is similar to that in shell.:open filesnameCommand to replace filesname with the corresponding file name

Vim common skills Summary 1

Related Article

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.