[vi shortcut key]
Example 1: Create a file ha.txt
(1) ctrl+shift+t to open the terminal
(2) vi ha.txt (create a ha file)
[Move cursor command h: move the cursor one character to the left;
l: Move the cursor one character to the right;
k: move the cursor up one line;
j or Enter: move the cursor down one line;
): move the cursor to the end of the sentence;
(: move the cursor to the beginning of the sentence;
}: move the cursor to the beginning of the paragraph;
{: move the cursor to the beginning of the paragraph To the end of the paragraph;]
[Insert text command
i: before the cursor;
I: at the beginning of the current line;
a: after the cursor;
A: at the end of the current line]
(3) Hello everyone! (input file content)
(4) Edit Press ESC when finished, and then enter q: exit; wq: save and exit after modification; q!: force quit without saving the modified content.
[You can also create a file first, and then enter the content]
unbutu terminal command vi shortcut key
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326945865&siteId=291194637
Ranking