Vim基本操作思维导图

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

CursorMovementh,j,k,lctrl-f=pageupctrl-b=pagedown%=jumptomatchingbracew=jumptoendofwords(punctuation)W=jumpbywordse=jumptoendofwords(punctuation)E=jumptoendofwordsb=jumpbackwardbywords(punctuation)B=jumpbackwardbywords0=startofline^=firstcharacterofline$=endoflinegg=gotofirstlinegd=gotodefofthefunctionorvarunderthecursor[N]G=gotolineNorlastlinefx=movethecursorforwardtothenextoccurrenceofcharacterxonthecurrentline;=repeatlastfcommandtx=likefxbutmoverightbeforethecharacterFx=movethecursorbackwardstothenextoccurrenceofx),(=movethecursortonext,previoussentence*=Readthestringunderthecursorandgotonextoccurrence#=sameas*butgoestopreviousoccurrence`.=GotolinelasteditedScreenwiseH=movethecursortotheHighestlineonthescreenM=movethecursortotheMiddleofthescreenL=movethecursortotheLowestlineofthescreenBookmarksma=Makeabookmarknameaatthecurrentcursorposition`a=Gotobookmarka(backtick,notsinglequote)InsertModei=insertmodeatcursorI=insertatthebeginningoflinea=appendafterthecursorA=appendattheendofthelineo=openblanklinebelowcurrentlineO=openblanklineabovecurrentlineEsc=exitinsertmodeCompletions(typeafewcharsthen)ctrl-n=nextcompletionctrl-p=previouscompletionEditingr=replaceasinglecharacter(!insertmode)J=joinlinebelowtothecurrentlinecc=changeanentirelinecw=changetotheendofwordc$=changetotheendoflines=deletecharacteratcursorandsubstitutetextS=deletelineatcursorandsubstitutetextxp=transposetolettersu=undoctrl-r=redo.=repeatlastcommand~=switchcaseg~iw=switchcaseofcurrentwordgUiw=makecurrentworduppercaseguiw=makecurrentwordlowercase=indentlineonecolumnright=indentlineonecolumnleft===auto-indentcurrentlineCutandPastedd=delete(cut)alinedw=deletethecurrentwordx=deletecurrentcharacterX=deletepreviouscharacterD=deletetoendoflineyy=yank(copyaline)2yy=yank(copy)2linesyw=yankwordy$=yanktoendoflinep=puttheclipboardaftercursor/currentlineP=puttheclipboardbeforethecursor/currentline]p=puttheclipboardattheproperindentationa=usearegisternamedaforthenextyank/pasteoperationVisualModeMarkingTextv=startvisualmodeV=startlinewisevisualmodectrl-v=startblockwisevisualmodeo=movetootherendofmarkedareaU=uppercaseofmarkedareaO=movetoOthercornerofblockaw=markawordab=ablockwithparens(braces)aB=ablockwithbrackets(curlybraces)ib=inner()blockiB=inner{}blockCommands=shiftright=shiftlefty=yankd=delete~=switchcaseSearch/Replace/pattern=searchforpattern?pattern=searchbackwardsforpatternn=repeatsearchinsamedirectionN=repeatsearchinoppositedirection:s/old/new/g=replacealloldthroughoutfile:s/old/new/gc=replacealloldwithnewandconfirmeachoneExiting:w=save:wq=saveandquit:x=saveandquit:q=quit,butfailedifunsaved:q!=quitMulti-File:efilename=editafileinanewbuffer:bn=gotonextbuffer:bd=deleteabuffer(closefile):spfn=openafileinnewbufferandsplitwindowctrlw-windowcommandsctrl-ws=splitwindowctrl-ww=switchwindowsctrl-wq=quitawindowctrl-wv=splitwindowsverticallyTabCommands:tabefn=editfileinnewtabgt=nexttabgT=previoustabs:tabr=Firsttab:tabl=Lasttab:tabm[N]=movecurrenttabaftertabNMacrosqa=startrecordingamacroinregisteraq=endrecording@a=replaymacroinregisteraVimCommandsandShortcutsBy:JoeMartinez@capitalist

1 / 1
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功