欢迎来到天天文库
浏览记录
ID:42388550
大小:37.50 KB
页数:5页
时间:2019-09-14
《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,pastetheregistertext5、r>{register}=moresmarterTip16={domath}=domathforusunderINSERTMODETip17ga=inspectthecodeforthecharunderthecursorTip19R=engageREPLACEmodeTip20viw=visuallyselectwordTip21v=intoVISUALmodeV=line-wiseVISUALmode=block-wiseVISUALmodegv=reselectthelastVISUA6、Lmodeo=(VISUAL)redefinetheboundsoftheselectionTip222>=(VISUAL)indenttwiceTip23vit=selecttheinnercontentsofatag(HTML)->cit,ditU=(VISUAL)converttheselectedchartoupper-casegUitTip24Vr-=replaceeverycharsinVISUALlinewith-Tip253je=quickVISUAL-blockselectc=[VISUAL]chan7、geonewordTip26$A;[Esc]=Append;ontheendofeveryselectedlineTip27:$=[EX]theendofthefile:.=[EX]thecurrentlineofthefile:%=[EX]allthelinesinthecurrentfileTip28:[range]copy8、co9、t{address}=[EX]makeacopyofline{range}putitblewthe{address}:'<,'>=[VISUAL]+[EX]dGp=select10、texturemovetotheendofthefileTip29:[range]m{address}=[EX]cutoflines{range}andputitblewthe{address}Vjj:'<,'>m$=moveselectedlinestothe
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
此文档下载收益归作者所有