Vim basic editing and mobile commands

Source: Internet
Author: User
Tags uppercase letter
1. move cursor: H: left L: Right K: Top J: bottom 2. delete a row: DD 3. delete A character: x4. delete a line break: j5. create a new line under the cursor and enter the insert mode: O (lowercase letter O) 6. create a new row above the cursor and enter the insert mode: O (uppercase letter O) 7. move the cursor to the beginning of the next word: w8. move the cursor to the beginning of the previous word: b9. move the cursor to the end of the next word: e10. move the cursor to the end of the previous word: ge11. move to the first character of the current line: 0 (number 0) 12. the first non-null character to be moved to the current row: ^ 13. move to the end of the current row: $14. move to the specified character in the row: FC (C is the character to be found) 15. move to the left to the specified character in the row: FC (C is the character to be found) 16. to the right, move to the specified character in the row: TC (C is the character to be found) 17. matching parentheses: % this need to be explained: Suppose there is a line below: (A + B) × C, assuming that the current cursor is in the left bracket (top, entering the % command in normal mode will automatically jump the cursor To the right bracket. 18. move to the specified row: 30g (30 is the row number) 19. move to the end of the file: G 20. move to file header: Gg or 1g21. the percentage of the location to which the file is located: 30% (30 is the proportion to which the file is located) 22. move to the beginning of the current screen: H (H stands for head) 23. move to the middle of the current screen: m (m represents the meaning of middle) 24. move to the end of the current screen: L (L represents the meaning of last) 25. move the screen up half screen: Ctrl + u26. move the screen down half screen: Ctrl + d27. scroll forward one screen: Ctrl + f28. scroll backward one screen: CTRL + b29. scroll the row where the cursor is located to the top of the current screen: zt30. scroll the row where the cursor is located to the bottom of the current screen: zb31. scroll the row where the cursor is located to the center of the current screen: zz32. undo last operation: u33. redo last operation: Ctrl + R
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.