Creado por Brandon Gonzalez
hace más de 2 años
|
||
When using the Vi editor it is good to know that pressing either i or a will get you into "insert" mode, and then pressing ESC at any time takes you back to command mode
When editing a file in vi, pressing ESC then :wq will save your file.
Shift + # Moves to the end of the line
When editing text using the vi editor, to move 3 lines up one would need to type_______ and to move 4 lines back down one would need to type______
Shift + ^ Jumps to the start of any given line
To move the cursor all the way to the front of the text you would type ________
Moving to the end of a word one would press
w is the same as e and moves you to the start of the next word
If you want to navigate to the end of the previous word type b
If you want to navigate to the start of the next sentence you have to type SHIFT + ) and the start of the previous sentence would be_____
To navigate to the end of the paragraph you must type SHIFT + { and the start of the previous paragraph type_______
To look for a specific word you must type ESC to exit whatever mode you are in and then type ____________
To shut off the current highlighting of the word you type________ in command mode.
Move your cursor onto any of the characters in the middle of any line.
To append text after the last character at the end of the line, press _____
Notice that the file is back into the insert mode and the cursor is shifted to the end of the line.
TIn command mode type dw to __________
To delete text from the first word after tying dw pressing d$ _______the rest of the line.
To copy a specific number of lines, enter the number of lines to copy, along with lowercase yy.
Ensure your cursor is on the first character of the first line and then enter 1yy. 1yy is similar to yy.
Note: You can also use D$ to delete all or part of a line from where your cursor is.
Use ZZ to save current file and keep contents text in file intact........