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 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 should be explained as follows: false The following line is provided: (a + B) × c. Assume that the current cursor is in the left bracket (upper, enter the % command in normal mode, and the cursor will automatically jump 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