Vim Practical Guide (3): Use Marker (1)-Set, Jump, View

Vim allows users to define their own tags to facilitate jumping (jump from one function to another, and then jump back);

1. Set the mark:

          Use the m command to set the mark. For example, in the normal mode, press ms to set a mark named s.

2. Jump to the mark

          Connect, in normal mode, press's, it will jump to the position marked a (it is recommended to move the cursor and then execute this command, for example, execute the G command to jump to the end of the text)

3. View the mark

          When a lot of marks are set, you may not remember the marks you set, then you can enter :marks to see which marks are set

 

Guess you like

Origin blog.csdn.net/lianshaohua/article/details/108593321