Vim basic use

1. Edit and Exit Edit

Enter edit mode: a or s or i key;

Exit edit mode: esc key;

2. Copy and paste

Internal copy: select the required copy content and press y key;

Internal paste: move the cursor to the paste position and press the p key;

External copy: select the content to be copied and press "+ y" key;

External paste: move the cursor to the paste location and press "+ p";

3. Find

/ <What you need to find>, press Enter;

eg : /hello

4. Tabs

: tabnew New Tab Page

gt jump to the next tab

gT jump to the previous tab

5.tags

If there is a tags file in the same directory, or another tags file is specified

Jump to the symbol definition: ctrl +]

Jump to the calling place: ctrl + t

Published 9 original articles · liked 0 · visits 119

Guess you like

Origin blog.csdn.net/ckm1607011/article/details/105473894