1, before the operation of the actual line with G, you can operate on the screen line, for example: ' GJ ' means to move down a screen line, ' g^ ' for moving to the screen line of the first non-whitespace characters and so on
2. Vim has two sets of commands for forward and reverse movement of words:
- W forward moves to the beginning of the next word
- b Reverse moves to the beginning of the current word/previous Word
- E forward moves to the end of the current word/previous Word
- GE moves backwards to the end of the previous word
Usually we can use an EA to indicate the end of the current word after adding
3, VIM will record the last execution of the ' F{char} ' command, and then use the '; ' command to repeat the command, if the number of repetitions, you can call ', ' to undo. The specific find command is as follows:
- F{char} move forward to the next {char} location
- F{char} reverse moves to the next {char} location
- T{char} forward moves to the previous character where the next {char} is located
- T{char} reverse moves to the last character where the previous {char} is located
Vim Practical Tips Reading notes---Moving and jumping