三种模式: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
删除,复制,光标移动命令略
本文介绍了Vim编辑器的基本操作模式,包括CommandMode、LastLineMode和InsertMode之间的切换方法,以及如何进行文件保存、退出等操作。此外还讲解了查找替换字符串的方法和一些实用的导航技巧。

1694

被折叠的 条评论
为什么被折叠?



