Week 3 - VI Editor Flashcards
What is Vi?
A terminal based text editor.
What is command mode?
The default mode of Vi used to navigate and manipulate text.
What is the ‘:’ command in Vi?
Last Line Mode - lets you execute special commands to the terminal. (pwd, ls, etc)
What is the ‘a’ command in Vi?
Add text after cursor.
What is the ‘A’ command in Vi?
Add text at the end of the line.
What is the ‘i’ command in Vi?
‘i’ stands for insert/input mode and is used to switch to input mode. Insert text before the cursor.
What is the ‘I’ command in Vi?
Insert text at the beginning of the line.
What is the ‘o’ command in Vi?
Open a new line below the current line.
What is the ‘O’ command in Vi?
Open a new line above the current line.
What is the ‘:q<Enter>' command in Vi?</Enter>
Closes a window in Vi editor.
What is the ‘:qa!<Enter>' command in Vi?</Enter>
Close Vi editor without saving changes.
What does ‘–INSERT–’ at the bottom of the Vi screen mean?
Vi is in insert mode where text can be entered.
What is the ‘:w’ command in Vi?
You add a file name after :w <Filename> and it will write the document to a file.</Filename>
What is the ‘x’ command in Vi?
Delete the character under the cursor.
What is the ‘X’ command in Vi?
Delete the character before the cursor.