Practical Vim 学习笔记

Practical Vim 学习笔记

ID:42388550

大小:37.50 KB

页数:5页

时间:2019-09-14

Practical Vim 学习笔记_第1页
Practical Vim 学习笔记_第2页
Practical Vim 学习笔记_第3页
Practical Vim 学习笔记_第4页
Practical Vim 学习笔记_第5页
资源描述:

《Practical Vim 学习笔记》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、vimrcdotfileSettingspsetmatchtime=1letg:user_zen_expandabbr_key=''nnoremap:nohlsearch=[enter]Tip1.=repeatlastchange(whenoverinsertmode,thetotaleditcontentsareincluded>G=autoindentTip2A=endoflineinsert$a=thesameeffectaboveTip3s=insteado

2、fachar;=repeatlastf{char}commendTip4@:=repeatlastEXcommendTip5*=searchthewordwhichcursorhoveroverTip8u=undolastchange=undoundoTip9daw=deletewordTip10cW=modifyaword(symbolwillbeanormalchar)180???Tip11d2w=2dw=dw.(butwhichoneisthebest?Tip12dl=deleteachar=xdap=

3、deleteanentireparagraphg~,gU,gu=convertchar'scapitalandsmalllettergUap=convertentireparagraphintoUpper-caselettergUgU=gUU=convertcurrentlineintoUpper-caseletter=G=autoindentTip13=deletebackonechar=deletebackoneword=deletebacktostartoflineTip14=bac

4、ktoNORMALmode=zz=redrawthescreenwiththecurrentlineinthemiddleofwindow广告气球http://www.ca-xyy.com/,吹膜机http://www.staohua.com/Tip15K=looksupmanpageforthewordunderthecursoryt,=yankthewordbefor,to{register}0={register}=underINSERTmode,pastetheregistertext

5、r>{register}=moresmarterTip16={domath}=domathforusunderINSERTMODETip17ga=inspectthecodeforthecharunderthecursorTip19R=engageREPLACEmodeTip20viw=visuallyselectwordTip21v=intoVISUALmodeV=line-wiseVISUALmode=block-wiseVISUALmodegv=reselectthelastVISUA

6、Lmodeo=(VISUAL)redefinetheboundsoftheselectionTip222>=(VISUAL)indenttwiceTip23vit=selecttheinnercontentsofatag(HTML)->cit,ditU=(VISUAL)converttheselectedchartoupper-casegUitTip24Vr-=replaceeverycharsinVISUALlinewith-Tip253je=quickVISUAL-blockselectc=[VISUAL]chan

7、geonewordTip26$A;[Esc]=Append;ontheendofeveryselectedlineTip27:$=[EX]theendofthefile:.=[EX]thecurrentlineofthefile:%=[EX]allthelinesinthecurrentfileTip28:[range]copy

8、co

9、t{address}=[EX]makeacopyofline{range}putitblewthe{address}:'<,'>=[VISUAL]+[EX]dGp=select

10、texturemovetotheendofthefileTip29:[range]m{address}=[EX]cutoflines{range}andputitblewthe{address}Vjj:'<,'>m$=moveselectedlinestothe

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。