三种模式:Command Mode,Last Line Mode,Insert Mode(切换命令Esc,a,i,o)
退出
:w newName
:wq
:q!
:qw
:10,20 w fileNam
查找与替
/string --find next press n
?string<br />
:1,$s/string/replace/g
:%s/string/replace/c
1,20s/string/replace/g
<strong>Others</strong>
:14 --然后按Enter跳至14行
:15G --按Enter跳至15行行首
Ctrl+G --显示光标所在的行号
:set nu --列出行号
u --redo
. --redo
删除,复制,光标移动命令略