/
Readline VI Editing Mode Cheat Sheet Default Keyboard Shortcuts for Bash Shortcut Description Readline VI Editing Mode Cheat Sheet Default Keyboard Shortcuts for Bash Shortcut Description

Readline VI Editing Mode Cheat Sheet Default Keyboard Shortcuts for Bash Shortcut Description - PDF document

faustina-dinatale
faustina-dinatale . @faustina-dinatale
Follow
650 views
Uploaded On 2014-12-21

Readline VI Editing Mode Cheat Sheet Default Keyboard Shortcuts for Bash Shortcut Description - PPT Presentation

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

Commands for Entering Input

Share:

Link:

Embed:

Download Presentation from below link

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.


Presentation Transcript

DeletionCommands: x Deleteasinglecharacterunderthecursor. X Deleteacharacterbeforethecursor. dmovementcommand&#x]TJ/;༠ ; .96;& T; 8.;ऑ ;� Td;&#x [00; Deletetextofamovementcommandmovementcommand&#x]TJ/;༠ ; .96;& T; 8.;ऑ ;� Td;&#x [00;(seeabove). D Deletetotheendoftheline(equivalenttod$). dd Deletecurrentline(equivalentto0d$). CTRL-w Deletethepreviousword. CTRL-u Deletefromthecursortothebeginningofline. Undo,RedoandCopy/PasteCommands: u Undoprevioustextmodi cation. U Undoallprevioustextmodi cationsontheline. . Redothelasttextmodi cation. ymovementcommand&#x]TJ/;༠ ; .96;& T; 8.;ऑ ;� Td;&#x [00; Yankamovementintobu er(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&#x]TJ/;༠ ; .96;& T; 8.;ऑ ;� Td;&#x [00;.Thesecommandsapplythemovementtothemselves.Forexample,d$woulduse$asamovement,whichmovesthecursortotheendoftheline,thus,thewholed$woulddeletetextfromthecurrentcursorpositiontotheendoftheline.Anotherexample,acommandcfAwouldusefAasamovement,which ndsthenextoccuranceofthecharacterA,thus,thewholecommandwouldchangethelineuptocharacterA.UseCTRL-vtoinsertcharacterliterally,forexample,CTRL-vCTRL-rwouldinsertCTRL-rinthecommandline.Seemanbash,manreadline,andbuiltinbindcommandformodifyingthedefaultbehavior! AcheatsheetbyPeterKrumins(peter@catonmat.net,@pkruminsontwitter).www.catonmat.net{goodcoderscode,greatcodersreuseReleasedunderGNUFreeDocumentLicense.