Vim: Edit the Mobile Command 1. move cursor: h: Left l: right k: Top j: Bottom 2. delete a row: dd3. delete a character: xwww.2cto. com4. delete a line break: J5. create a line under the cursor and enter the insert mode: o (lowercase letter o) 6. in the light... vim: Edit the Mobile Command 1. move cursor: h: Left l: right k: Top j: Bottom 2. delete a row: dd 3. delete a character: x www.2cto.com 4. delete a linefeed: J 5. create a new row 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: w 8. move the cursor to the beginning of the previous word: B 9. move the cursor to the end of the next word: e 10. move the cursor to the end of the previous word: ge 11. move to the first character of the current line: 0 (number 0) www.2cto.com 12. the first non-null character to be moved to the current row: ^ 13. move to the end of the current row: $14. move 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, in normal mode, entering the % command 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 1G 21. 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 + U 26. move the screen down to the half screen: ctrl + D www.2cto.com 27. scroll forward to a screen: ctrl + F 28. scroll back to a screen: ctrl + B 29. scroll the row where the cursor is located to the top of the current screen: zt 30. scroll the row where the cursor is located to the bottom of the current screen: zb 31. scroll the row where the cursor is located to the center of the current screen: zz 32. undo last operation: u 33. redo last operation: ctrl + R author Xiong Feng
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.