Week 3 - VI Editor Flashcards

1
Q

What is Vi?

A

A terminal based text editor.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is command mode?

A

The default mode of Vi used to navigate and manipulate text.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the ‘:’ command in Vi?

A

Last Line Mode - lets you execute special commands to the terminal. (pwd, ls, etc)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the ‘a’ command in Vi?

A

Add text after cursor.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the ‘A’ command in Vi?

A

Add text at the end of the line.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the ‘i’ command in Vi?

A

‘i’ stands for insert/input mode and is used to switch to input mode. Insert text before the cursor.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the ‘I’ command in Vi?

A

Insert text at the beginning of the line.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the ‘o’ command in Vi?

A

Open a new line below the current line.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the ‘O’ command in Vi?

A

Open a new line above the current line.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the ‘:q<Enter>' command in Vi?</Enter>

A

Closes a window in Vi editor.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the ‘:qa!<Enter>' command in Vi?</Enter>

A

Close Vi editor without saving changes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does ‘–INSERT–’ at the bottom of the Vi screen mean?

A

Vi is in insert mode where text can be entered.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the ‘:w’ command in Vi?

A

You add a file name after :w <Filename> and it will write the document to a file.</Filename>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the ‘x’ command in Vi?

A

Delete the character under the cursor.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the ‘X’ command in Vi?

A

Delete the character before the cursor.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the ‘cl’ command in Vi?

A

Delete the current character and enter input mode.

17
Q

What is the ‘cc’ command in Vi?

A

Delete the entire current line and enter input mode

18
Q

How do you repeat an action in Vi?

A

Press the period (.) key to repeat the action.

19
Q

What is a Repeater Modifier?

A

Placing a number before a command acts as a modifier. Examples:
▪ 3w: Moves forward three words
▪ 5i: Inserts something five times
▪ 4(: Moves back three paragraphs

20
Q

What is the ‘u’ command in Vi?

A

Undo last action.

21
Q
A