《Linux操作系统》课程教学资源(参考资料)Vi Quick Reference

Vi Quick Reference http://www.sfu.ca/-yzhang/linux MOVEMENT (lines-ends at ;sentence-ends at puncuation-space;section-ends at ) By Character Marking Position on Screen mp mark current position as p (a..Z) move to mark position p 'p move to first non-whitespace on line w/mark p h Miscellaneous Movement fm forward to character m Fm backward to character m By Line tm forward to character before m nG to line n Tm backward to character after m 0,S first,last position on line W move to next word (stops at puncuation) A or first non-whitespace char on line W move to next word (skips punctuation) +, first character on next,prev line b move to previous word(stops at punctuation) B move to previous word(skips punctuation) By Screen e end of word(puncuation not part of word) AF.AB scroll foward,back one full screen E end of word(punctuation part of word) D.U scroll forward,back half a screen ),( next,previous sentence E,AY show one more line at bottom,top 小, next,previous section L go to the bottom of the screen },{ next,previous paragraph Z position line with cursor at top % goto matching parenthesis (){[ v position line with cursor at middle 竹 position line with cursor at EDITING TEXT Entering Text Searching and Replacing a append after cursor w search forward for w A or Sa append at end of line ?w search backward for w i insert before cursor /w/+n search forward for w and move down n lines Ior i insert at beginning of line repeat search(forward) 0 open line below cursor N repeat search(backward) 0 open line above cursor cm change text (m is movement) :s/old/new replace next occurence of old with new :s/old/newlg replace all occurences on the line Cut,Copy,Paste(Working w/Buffers) :x,ys/old/new/g replace all ocurrences from line x to y dm delete (m is movement) %s/old/new/g replace all occurrences in file dd delete line %s/old/new/ge same as above,with confirmation D or ds delete to end of line r delete char under cursor Miscellaneous X delete char before cursor > indent n lines(m is movement) ym yank to buffer (m is movement) n) “bp paste from named buffer b :rf insert text from external file f AG show status
MOVEMENT (lines - ends at ; sentence - ends at puncuation-space; section - ends at ) By Character By Line nG to line n 0, $ first, last position on line ^ or _ first non-whitespace char on line +, - first character on next, prev line By Screen ^F, ^B scroll foward, back one full screen ^D, ^U scroll forward, back half a screen ^E, ^Y show one more line at bottom, top L go to the bottom of the screen z¿ position line with cursor at top z. position line with cursor at middle z- position line with cursor at Marking Position on Screen mp mark current position as p (a..z) `p move to mark position p 'p move to first non-whitespace on line w/mark p Miscellaneous Movement fm forward to character m Fm backward to character m tm forward to character before m Tm backward to character after m w move to next word (stops at puncuation) W move to next word (skips punctuation) b move to previous word (stops at punctuation) B move to previous word (skips punctuation) e end of word (puncuation not part of word) E end of word (punctuation part of word) ), ( next, previous sentence ]], [[ next, previous section }, { next, previous paragraph % goto matching parenthesis () {} [] EDITING TEXT Entering Text a append after cursor A or $a append at end of line i insert before cursor I or _i insert at beginning of line o open line below cursor O open line above cursor cm change text (m is movement) Cut, Copy, Paste (Working w/Buffers) dm delete (m is movement) dd delete line D or d$ delete to end of line x delete char under cursor X delete char before cursor ym yank to buffer (m is movement) yy or Y yank to buffer current line p paste from buffer after cursor P paste from buffer before cursor “bdd cut line into named buffer b (a..z) “bp paste from named buffer b Searching and Replacing /w search forward for w ?w search backward for w /w/+n search forward for w and move down n lines n repeat search (forward) N repeat search (backward) :s/old/new replace next occurence of old with new :s/old/new/g replace all occurences on the line :x,ys/old/new/g replace all ocurrences from line x to y :%s/old/new/g replace all occurrences in file :%s/old/new/gc same as above, with confirmation Miscellaneous n>m indent n lines (m is movement) n) :rf insert text from external file f ^G show status Vi Quick Reference http://www.sfu.ca/~yzhang/linux h j l k hjkl
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 《Linux操作系统》课程教学资源(参考资料)VIM命令小结.pdf
- 《Linux操作系统》课程教学资源(参考资料)Linux常用命令.pdf
- 图像、文字、语音与人工智能(课件讲稿)人工智能教育课程设计.pdf
- 图像、文字、语音与人工智能(PPT课件讲稿)K12人工智能课程案例设计思考.pptx
- 图像、文字、语音与人工智能(PPT课件讲稿)人工智能——数据标注.pptx
- 图像、文字、语音与人工智能(PPT课件讲稿)语音识别的原理.ppt
- 《单片机原理及应用》课程教学资源(PPT课件)第2章 单片机应用系统的开发环境.ppt
- 《微机原理与接口技术》课程教学资源(PPT课件)第3章 8086指令系统.ppt
- 《单片机原理及应用》课程教学资源(PPT课件)第1章 单片机基础知识.ppt
- 南阳师范大学:《数据结构》课程电子教案(PPT课件)第4章 串.ppt
- 南阳师范大学:《数据结构》课程电子教案(PPT课件)第3章 栈和队列.ppt
- 南阳师范大学:《数据结构》课程电子教案(PPT课件)第2章 线性表.ppt
- 南阳师范大学:《数据结构》课程电子教案(PPT课件)第1章 绪论(主讲:程艺苑).ppt
- 南阳师范学院:《计算机网络》课程教学资源(教案讲义)计算机网络教学计划(主讲:蒋华龙,教材:谢希仁第七版).doc
- 南阳师范学院:《计算机网络》课程教学资源(PPT课件,谢希仁第6版)第4章 网络层.ppt
- 南阳师范学院:《计算机网络》课程教学资源(PPT课件,谢希仁第6版)第3章 数据链路层.ppt
- 南阳师范学院:《计算机网络》课程教学资源(PPT课件,谢希仁第6版)第2章 物理层.ppt
- 南阳师范学院:《计算机网络》课程教学资源(PPT课件,谢希仁第6版)第1章 概述.ppt
- 《matlab程序设计与应用》课程电子教案(PPT课件)第9章 MATLAB Notebook的使用.ppt
- 《matlab程序设计与应用》课程电子教案(PPT课件)第8章 MATLAB图形用户界面设计.ppt
- 《Linux操作系统》课程教学资源(参考资料)Linux搜索命令.pdf
- 华东师范大学:《Linux操作系统》课程教学资源(课件讲稿)第一讲 Linux介绍(主讲:潘建瑜).pdf
- 华东师范大学:《Linux操作系统》课程教学资源(课件讲稿)第二讲 Linux安装(Fedora 9的安装).pdf
- 华东师范大学:《Linux操作系统》课程教学资源(课件讲稿)第三讲 Linux基础.pdf
- 华东师范大学:《Linux操作系统》课程教学资源(课件讲稿)第四讲 Linux文件系统.pdf
- 华东师范大学:《Linux操作系统》课程教学资源(课件讲稿)第五讲 Linux Shell介绍.pdf
- 华东师范大学:《Linux操作系统》课程教学资源(课件讲稿)第六讲 Linux进程控制.pdf
- 华东师范大学:《Linux操作系统》课程教学资源(课件讲稿)第七讲 正则表达式.pdf
- 华东师范大学:《Linux操作系统》课程教学资源(课件讲稿)第八讲 文本编辑器vim使用指南.pdf
- 华东师范大学:《Linux操作系统》课程教学资源(课件讲稿)第九讲 文本过滤.pdf
- 华东师范大学:《Linux操作系统》课程教学资源(课件讲稿)第十讲 Shell的输入与输出.pdf
- 华东师范大学:《Linux操作系统》课程教学资源(课件讲稿)第十一讲 Shell脚本编程——Shell变量.pdf
- 华东师范大学:《Linux操作系统》课程教学资源(课件讲稿)第十二讲 Shell脚本编程.pdf
- 华东师范大学:《Linux操作系统》课程教学资源(课件讲稿)Linux复习.pdf
- 华东师范大学:《计算机应用基础》课程教学资源(课件讲稿)MATLAB简要教程.pdf
- 华东师范大学:《计算机应用基础》课程教学资源(课件讲稿)第一讲 数学软件MATLAB基础.pdf
- 华东师范大学:《计算机应用基础》课程教学资源(课件讲稿)第二讲 MATLAB符号 ——Matlab 符号.pdf
- 华东师范大学:《计算机应用基础》课程教学资源(课件讲稿)第三讲 MATLAB绘图.pdf
- 华东师范大学:《计算机应用基础》课程教学资源(课件讲稿)第三讲 常见空间曲线与曲面做图(标准方程及Matlab作图).pdf
- 华东师范大学:《计算机应用基础》课程教学资源(课件讲稿)第四讲 MATLAB数据类型.pdf