linux vi命令的快捷键的使用(国外英文资料)
linux vi命令的快捷键的使用(国外英文资料)
The use of shortcut keys for the Linux vi command
Cursor control command
Command cursor movement
H or h ^ move one character to the left
J ^ j or ^ n down one line
K or moving upward ^ p line
L or space moves a character to the right
The G moves to the last line of the file
NG moves to line n of the file
W moves to the beginning of the next word
W moves to the beginning of the next word, ignoring punctuation
B moves to the beginning of the first word
B move to the beginning of the first word and ignore the punctuation
Move to the last line of the screen
M moves to the middle of the screen
H moves to the first line of the screen
E moves to the end of the next word
E moves to the end of the next word, ignoring punctuation
Move to the beginning of the sentence
Move to the end of the sentence
{move to the beginning of the paragraph
* move to the beginning of the next paragraph
0 or | moves to the first column of the current row
N | to the current row n column
^ moved to the current row first not null character
Move $1 to the last character of the current line
+ or return moves to the first character of the next line
-move to the first non-empty character in the previous line
Add text to the Linux vi command
Command insert action
A is inserted into the text after the cursor
A inserts text in the current line
I insert text in front of the cursor
I insert text before the current line
O insert the new line under the current line
O insert the new line above the current line
: r file reads the file contents and inserts them in the current row
The nr file reads the file contents and inserts them in line n
Escape returns to the command mode
^ v char insert time ignore char specified meaning, which is to insert special characters
Delete text in the Linux vi command
Command delete operation
X removes the characters from the cursor and can add the number of characters to delete before x
Nx deletes n characters from the current cursor
X deletes the charact