linux foundation ---- vim editor (II)

The reason vim been known to the public, because of his shortcuts, today we bring is the shortcut command mode used

1. Move the cursor to the left or ← h

2. Move the cursor down j or ↓

3. Move the cursor up or k ↑

4. Move the cursor right or l →

 

The scroll down a ctrl + f

6. turned up a ctrl + b

7. Half-page folded downwards ctrl + d

8. Half-page upturned ctrl + u

 

10. Move the cursor to the beginning or the home button 0

11. Move the cursor to the end of the line or the End key $

12. Move the cursor to the top of the screen in the first row of a character H

13. Move the cursor to the middle of the screen in the first character row M

13. Move the cursor to the bottom line of the screen the first character L

14 to the last line of the document G

 

15. Before deleting a character X

16. To delete a character x

17. Delete n characters nx

18. Delete row dd

19. ndd Delete n lines

20. Remove the cursor line to the first line d1G

21. Delete the cursor to the last row dG

22. Delete the cursor to the last content d $

23. Delete the cursor to the top of the content d0

24. Copy the contents of a line yy

25. Copy the contents of n lines nyy

26. Copy the cursor to the first row y1G

27. Copy the cursor to the last line yG

28. Copy the cursor to the last content y $

28. Copy the contents of the cursor to the top of y0

29. Paste p

 

30. The cursor next row merge J

31. The recovery operation before a u

32. Repeat the action ctrl + r

 

Guess you like

Origin www.cnblogs.com/mrluve/p/12348229.html