Vim basic edit and move command 1. move cursor: h: left l: Right k: Top j: bottom 2. delete a row: dd www.2cto.com 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 the current cursor In normal mode, enter % to 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 www.2cto.com 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 author wawlian