Common linux command system commands -vi

Go to File file.py VI
### (command state, can not be edited)
up and down to move the cursor

0 at the beginning of the row to move the cursor
$ move the cursor to the end of the line

gg moves to the beginning of the first line of the file
G is moved to the beginning of the file end of the line (shift + g)

b is moved to the beginning of the current word (Chinese characters, characters between two non-content word count)
E moves to the end of the current word


Copy the current line yy
dd Cut current line
p paste inside the lower case is inserted below the cursor line
P uppercase contents of the clipboard in a row is inserted above the cursor

u Undo
### write state
i into the cursor, the preparation of
o insert a blank line below cursor line, write
S delete the cursor line, and into the input
esc write state exit
### at the bottom command
w holding
q exit
set nu documents show that the number of lines

Guess you like

Origin www.cnblogs.com/chenlulu1122/p/11888595.html