Nearly all commands can be preceded by a number for a repeat count: 量词 + 命令
<Esc> gets you out of any mode and back to command mode: escape 到normal模式
Commands preceded by : are executed on the command line at the bottom of the screen: 通过: 运行命令
:help help with any command: 获取命令帮助
navigation
Cursor movement: ←h ↓j ↑k l→ : 光标移动
Words: w (by punctuation)(下个单词头): 通过标点; W (by spaces): 通过空格; b(单词头); B; e(单词末); E;
Line: 0 start(本行头); ^ first non-whitespace(第一个非空字符); $ end of line(本行末); - first non-whitespace of upper line(上一行第一非空字符); + first non-whitespace of lower line(下一行第一非空字符);
Paragraph: { previous blank line; } next blank line: 上下一个空格行
File: gg G 100G: (G end of file, gg start of file, number G absolute line)
Marks: mx (set mark x); ‘x go to mark; :marks view marks; ‘. go to position of last edit; ‘’ go back to last point before jump.
Scroll: Ctrl+F, Ctrl+B full screen; Ctrl+D, Ctrl+U half screen; Ctrt+E, Ctrl+Y scroll one line; zz zt zb screen postion;
Edit
u undo; Ctrl+r;
i insert text at cursor; I insert text at start of line;
a append text after cursor; A end of line;
o open new line below; O above;
r replace single character; R multiple;
cw change word; C change to end of line; cc change whole line;