Commands for Entering Input mode Insert before cursor Insert after cursor Insert at the beginning of line Insert at the end of line movement command Change text of a movement command movement command see below Change text to the end of line equivale ID: 27314
Download Pdf The PPT/PDF document "Readline VI Editing Mode Cheat Sheet Def..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
DeletionCommands: x Deleteasinglecharacterunderthecursor. X Deleteacharacterbeforethecursor. dmovementcommand]TJ/;༠ ; .96;& T; 8.;ऑ ; Td; [00; Deletetextofamovementcommandmovementcommand]TJ/;༠ ; .96;& T; 8.;ऑ ; Td; [00;(seeabove). D Deletetotheendoftheline(equivalenttod$). dd Deletecurrentline(equivalentto0d$). CTRL-w Deletethepreviousword. CTRL-u Deletefromthecursortothebeginningofline. Undo,RedoandCopy/PasteCommands: u Undoprevioustextmodication. U Undoallprevioustextmodicationsontheline. . Redothelasttextmodication. ymovementcommand]TJ/;༠ ; .96;& T; 8.;ऑ ; Td; [00; Yankamovementintobuer(copy). yy Yankthewholeline. p Inserttheyankedtextatthecursor(paste). P Inserttheyankedtextbeforethecursor. CommandsforCommandHistory: k Movebackwardonecommandinhistory. j Moveforwardonecommandinhistory. G Movetothehistorylinen(youmayspecifytheargumentnbytypingitonnumberkeys,forexample,15G). /stringorCTRL-r Searchhistorybackwardforacommandmatchingstring. ?stringorCTRL-s Searchhistoryforwardforacommandmatchingstring(rememberthatonmostmachinesCTRL-sstopstheoutputtotheterminal(CTRL-qstartsoutput)andyoumightneedtochangeitwithsttycommand). n Repeatsearchinthesamedirectionasprevious. N Repeatsearchintheoppositedirectionasprevious. CompletionCommands: TABorCTRL-ior= Listpossiblecompletions. * Insertallpossiblecompletions. MiscellaneousCommands: Invertthecaseofthecharacterundercursor,andmoveacharacterright. # Prepend#(commentcharacter)tothelineandsendittothehistorylist. Insertsthen-thwordofthepreviouscommandinthecurrentline. 0,1,2,... Setsthenumericargument. CTRL-v Insertacharacterliterally(quotedinsert). CTRL-t Transpose(exchange)twocharacters. ExamplesandTipsSomeofthecommandstakeamovementcommand]TJ/;༠ ; .96;& T; 8.;ऑ ; Td; [00;.Thesecommandsapplythemovementtothemselves.Forexample,d$woulduse$asamovement,whichmovesthecursortotheendoftheline,thus,thewholed$woulddeletetextfromthecurrentcursorpositiontotheendoftheline.Anotherexample,acommandcfAwouldusefAasamovement,whichndsthenextoccuranceofthecharacterA,thus,thewholecommandwouldchangethelineuptocharacterA.UseCTRL-vtoinsertcharacterliterally,forexample,CTRL-vCTRL-rwouldinsertCTRL-rinthecommandline.Seemanbash,manreadline,andbuiltinbindcommandformodifyingthedefaultbehavior! AcheatsheetbyPeterKrumins(peter@catonmat.net,@pkruminsontwitter).www.catonmat.net{goodcoderscode,greatcodersreuseReleasedunderGNUFreeDocumentLicense.