`
yanggaojiao
  • 浏览: 80739 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Vi常用命令

阅读更多

三种模式: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
删除,复制,光标移动命令略

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics