i-- enter insert mode and begin inserting or deleting texta-- enter insert mode, one space after cursor position<escape>-- enter normal mode
保存退出
Lua
12
<:q!>-- quit without writing<:wq>-- write and quit
移动
Lua
1
<Up/Down/Left/Right>-- 方向键
Lua
1
number+<Up/Down/Left/Right>-- 向上/下/左/右移动几number格
词单元
Lua
123456
<w>-- next word <b>-- beginning of word<e>-- end of word<0>(zero)-- move to beginning of line<$>-- move to end of line<^>-- first non-null part of the line
我已经将<0> and <$> 重定向成 shift - and shift +了, 很明显我的开箱即用教程已经最大程度地减轻需要记忆的负担 :)
Lua
1
<numberw,b>-- eg: <4w> - moves forward 4 words
跳转
Lua
12
<G>-- go to end of file<gg>-- go to beginning of file
Lua
12
<ctrlu>-- scroll up (half a page)<ctrld>-- scroll down (half a page)
查找
Lua
123
</search_item>-- searches for all occurrences in the file<n>-- jumps to the next occurrence<N>-- jumps to the previous occurrence
删除
Lua
12
dd-- delete this linecc-- delete this line and into `Insert` mode
撤销和回退
Lua
12
<u>-- undo edit<ctrlr>-- redo edit
复制和粘贴
Lua
12345
<yy>-- yanks(or copies) current line<p>-- pastes copied itemy5<Right>-- 复制右边的5个字符<space>a-- 复制全文进入系统粘贴板