033-Unit 11 Advanced Uses of the vi Editors

File Repositioning: G go to last line

<Ctrl-d><Ctrl-u>

Screen Repositioning: H M L z<ENTER> z-

Filtering : !!command

!}sort 排列

!}fmt -w60

ex mode: Search and Replace

(1,n/$)/%/(.,.+n)s/aaa/bbb/g

Advanced Reading and Saving :

:r file1  :1,20w file2  :1,$w file3  :1,20w>>file4

:n切换档案 :rew 切换回转 :n#来回切换

Configure vi : set ignorecase :se noic :set number :se nonu

posted @ 2009-08-17 21:12  qyf  阅读(108)  评论(0编辑  收藏  举报