THE vi editor

Description

Most Common Linux Editor for text files
Brandon Gonzalez
Flashcards by Brandon Gonzalez, updated more than 1 year ago
Brandon Gonzalez
Created by Brandon Gonzalez over 2 years ago
2
0

Resource summary

Question Answer
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 True
When editing a file in vi, pressing ESC then :wq will save your file. True
Shift + # Moves to the end of the line FALSE 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______ 3k and 4j
Shift + ^ Jumps to the start of any given line TRUE
To move the cursor all the way to the front of the text you would type ________ 1 + SHIFT + H
Moving to the end of a word one would press e
w is the same as e and moves you to the start of the next word TRUE
If you want to navigate to the end of the previous word type b TRUE
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_____ SHIFT + (
To navigate to the end of the paragraph you must type SHIFT + { and the start of the previous paragraph type_______ SHIFT + }
To look for a specific word you must type ESC to exit whatever mode you are in and then type ____________ /"and then the word you are looking for"
To shut off the current highlighting of the word you type________ in command mode. :noh
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. A
TIn command mode type dw to __________ Erase the first word of the sentence
To delete text from the first word after tying dw pressing d$ _______the rest of the line. Deletes It
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. TRUE
Note: You can also use D$ to delete all or part of a line from where your cursor is. Cool
Use ZZ to save current file and keep contents text in file intact........ TRUE
Show full summary Hide full summary

Similar

Hivisasa.com
Jackson Asu Cheg
Girls' and Boys' Education - A Mind Map_1
meriya77
Break-even Analysis - FLASH CARDS
Harshad Karia
The Wife of Bath Critics
rlshindmarsh
Business Studies GCSE
phil.ianson666
Modals & semi-modals
Abeer Alqahtani
Unit 2 flashcards
C R
organic chemistry
osgoconqr
Sustainability & digital technology
Eden Goddard
'Love and Relationships' Poem Themes
Lindis Dixon
Dr Jekyll and Mr Hyde
rachel allan