Common shortcuts:
Ctrl + f Down
Page up Ctrl + b
G is moved to the last line of the file
gg moves to the first line of the file
Enter number of N + N, N is moved down to the line
/ Keyword looking down keywords
? Keyword looking up keywords
# Find the cursor from the cursor backward Keywords
* Find Keyword cursor from the cursor forward
n lookup operation is repeated down the last
N and n contrast, a lookup operation on an inverted repeat
: N1, n2s / Keyword 1 / Keyword 2 / g find keywords from a line between the first n1 and n2, and replaced with a keyword Keyword 2
: 1, $ s / Keyword 1 / Keyword 2 / g from the first row to find the last line keyword 1, and keyword Keyword 1 was replaced 2
: 1, $ s / Keyword 1 / Keyword 2 / gc to find from the first row to the last row keyword 1, keyword 1 replaced to confirm the replacement for the keyword prompts the user before 2
dd delete the entire line
n is a number NDD, n down cursor to delete rows.
yy copy cursor line
NYY n digital copy cursor down n lines
p, P p small duplicated data in the next line the cursor paste, large P paste the copied data on the cursor line
u undo previous operation
Ctrl + r on a redo operation
It will repeat the last command
i: insert the left of the current character
I: First insert the current line
a: insert to the right of the current character
A: inserting the end of the current row
o: below the current line insert a new row
O: Insert a new line above the current line
: W save data
: Wq save and exit
:! Q to exit without saving
: W filename Save as equivalent