vi notes

x = wq
q
q!, quit without save.

move
j,h,k,l
^ or 0: start of line
$: end of line
:0, start of file
:$, end of file
:n, line n
^f: move forward one screen
^b: move backward one screen

u: undo
o: insert a new blank line
yy: copy current line
p: paste after the current line
/string: search forward
?string: search backward
原文地址:https://www.cnblogs.com/margiex/p/3631910.html