This is not the document you are looking for? Use the search form below to find more!

Report home > Others

Bash Cheat Sheet -- Vi Editing Mode Cheat Sheet

0.00 (0 votes)
Document Description
Bash Cheat Sheet -- Vi Editing Mode Cheat Sheet
File Details
Submitter
  • Name: henriette
Embed Code:

Add New Comment




Related Documents

Manual Mode Cheat Sheet

by: Kate Johnson, 1 pages

Beginner tips for shooting manually with a digital camera.

The Web Developer's SEO Cheat Sheet

by: williamstt, 2 pages

The Web Developer's SEO Cheat Sheet Important SEO HTML tags Search Engine Indexing Limits Common Canonical Homepage Issue Important Search Engine Robots Common Robot ...

BMW Cheat Sheet

by: clevenger, 3 pages

This cheat sheet contains useful everyday information on maintenance procedures, common value setting, oil and radiator fluids information, some bolt torque values, parts adjustment, alarm set ...

OCL Cheat Sheet

by: DISI, 1 pages

OCL cheat sheet

Cisco Ios Cheat Sheet Router Commands

by: hanno, 2 pages

Cisco Ios Cheat Sheet Router Commands

Cisco Ios Cheat Sheet Show Commands

by: przemek, 2 pages

Cisco Ios Cheat Sheet Show Commands

Farmville Crop Cheat Sheet

by: khulood, 1 pages

Farmville Hacks, Cheats & Secrets CLICK HERE

Online Bingo Cheat Sheet

by: laashley, 7 pages

This document is about how to play the online games with ease using the secret tips and tricks provided in this document to maximize the probability of winning.

Voting Cheat Sheet (Canada 2011)

by: Brad Richert, 1 pages

Cheat sheet for 2011 Canadian General Election

Sql Server Cheat Sheet V1

by: bella, 1 pages

Sql Server Cheat Sheet V1

Content Preview
Readline VI Editing Mode Cheat SheetDefault Keyboard Shortcuts for BashShortcutDescriptionSwitching to Command Mode:ESCSwitch to command mode.Commands for Entering Input mode:iInsert before cursor.aInsert after cursor.IInsert at the beginning of line.AInsert at the end of line.c<movement command>Change text of a movement command <movement command> (see below).CChange text to the end of line (equivalent to c$).cc or SChange current line (equivalent to 0c$).sDelete a single character under the cursor and enter input mode (equivalent toc[SPACE]) .rReplaces a single character under the cursor (without leaving command mode).RReplaces characters under the cursor.vEdit (and execute) the current command in a text editor (an editor in $VISUAL and$EDITOR variables or vi).Basic Movement Commands (in command mode):l or SPACEMove one character right.hMove one character left.wMove one word or token right.bMove one word or token left.WMove one non-blank word right.BMove one non-blank word left.eMove to the end of the current word.EMove to the end of the current non-blank word.0Move to the beginning of line.ˆMove to the first non-blank character of line.$Move to the end of line.%Move to the corresponding opening/closing bracket (()’s, []’s and {}’s).Character Finding Commands (these are also Movement Commands):fcMove right to the next occurance of c.FcMove left to the previous occurance of c.tcMove right to the next occurance of c, then one char backward.TcMove left to the previous occurance of c, then one char forward.;Redo the last character finding command.,Redo the last character finding command in opposite direction.|Move to the n-th column (you may specify the argument n by typing it on numberkeys, for example, 20|).A cheat sheet by Peteris Krumins (peter@catonmat.net), 2008.http://www.catonmat.net - good coders code, great reuseReleased under GNU Free Document License.Deletion Commands:xDelete a single character under the cursor.XDelete a character before the cursor.d<movement command>Delete text of a movement command <movement command> (see above).DDelete to the end of the line (equivalent to d$).ddDelete current line (equivalent to 0d$).CTRL-wDelete the previous word.CTRL-uDelete from the cursor to the beginning of line.Undo, Redo and Copy/Paste Commands:uUndo previous text modification.UUndo all previous text modifications on the line..Redo the last text modification.y<movement command>Yank a movement into buffer (copy).yyYank the whole line.pInsert the yanked text at the cursor (paste).PInsert the yanked text before the cursor.Commands for Command History:kMove backward one command in history.jMove forward one command in history.GMove to the history line n (you may specify the argument n by typing it on numberkeys, for example, 15G)./string or CTRL-rSearch history backward for a command matching string.?string or CTRL-sSearch history forward for a command matching string (remember that on mostmachines CTRL-s stops the output to the terminal (CTRL-q starts output) and youmight need to change it with stty command).nRepeat search in the same direction as previous.NRepeat search in the opposite direction as previous.Completion Commands:TAB or CTRL-i or =List possible completions.*Insert all possible completions.Miscellaneous Commands:∼Invert the case of the character under cursor, and move a character right.#Prepend # (comment character) to the line and send it to the history list.Inserts the n-th word of the previous command in the current line.0, 1, 2, ...Sets the numeric argument.CTRL-vInsert a character literally (quoted insert).CTRL-tTranspose (exchange) two characters.Examples and Tips• Some of the commands take a <movement command>. These commands apply the movement to themselves.For example, d$ would use $ as a movement, which moves the cursor to the end of the line, thus, the whole d$would delete text from the current cursor position to the end of the line. Another example, a command cfA woulduse fA as a movement, which finds the next occurance of the character A, thus, the whole command would changethe line up to character A.• Use CTRL-v to insert character literally, for example, CTRL-v CTRL-r would insert CTRL-r in the commandline.• See man bash, man readline, and built in bind command for modifying the default behavior!A cheat sheet by Peteris Krumins (peter@catonmat.net), 2008.http://www.catonmat.net - good coders code, great reuseReleased under GNU Free Document License.

Download
Bash Cheat Sheet -- Vi Editing Mode Cheat Sheet

 

 

Your download will begin in a moment.
If it doesn't, click here to try again.

Share Bash Cheat Sheet -- Vi Editing Mode Cheat Sheet to:

Insert your wordpress URL:

example:

http://myblog.wordpress.com/
or
http://myblog.com/

Share Bash Cheat Sheet -- Vi Editing Mode Cheat Sheet as:

From:

To:

Share Bash Cheat Sheet -- Vi Editing Mode Cheat Sheet.

Enter two words as shown below. If you cannot read the words, click the refresh icon.

loading

Share Bash Cheat Sheet -- Vi Editing Mode Cheat Sheet as:

Copy html code above and paste to your web page.

loading