The basic operation of Linux in vim

Vim conversion between three modes:

 

 1. Copy the current line yy, copy the current row down by five lines 5yy paste using p;

 

2. Delete the current row dd, delete the current row 5dd down by five lines;

3. Find a word in the file command line mode [ / keywords, press Enter to find, look for a lower input n]; 

4. Display line numbers and line numbers [cancel file: set nu: set nonu]

The first line 5. Find the normal mode and the last row [] gg [G];

6. In a file input '' hello '', then withdraw the operation input u in the normal mode.

 

Guess you like

Origin www.cnblogs.com/shengguorui/p/12353149.html