免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1867 | 回复: 0
打印 上一主题 下一主题

Using vi(2).《HP-UX Cerfitication学习笔记》 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-02-28 11:01 |只看该作者 |倒序浏览

               
               
               
*Undo
& redo
In command
mode(pressing  from text-inserting mode
undo the last
change
undo all the
changes
to redo something
changed by undo

*Scrolling
text
In command
mode(pressing  from text-inserting mode)
scroll one screen
back
scroll one screen
forward
scroll half
screen back
scroll half
screen forward
*Search
and replace text
/text        search “text” in forward direction
from the current cursor loaction
?text       search “text” in backward
direction from the current cursor loaction
/          repeat previous search in forward direction
?           repeat previous search in
backward direction
n           repeat the search in the
same direction
N          repeat the search in the
opposite direction

*Copy
and paste text
    copy or yank currenr line
   copy n lines start from
current line position
     paste the yanked line(s)
after current cursor
     paste the yanked line(s)
before current cursor
  move current line and paste it after line number a
  move lines from a to b, and paste after line number c
   copy lines from
a to b, and paste after line number c

*Importing
and exporting text
Import:
   import all
content of “filename”after the cursor in your vi  screen
Export:
  save current file as file2
   save line 3 to 47 as file4
#end of chapter 5#
               
               
               
               
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/14038/showart_79259.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP