vim 1 Flashcards

1
Q

Vim command used to delete from the cursor to the end of the line

A

d$

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

Command used to delete the entire line in vim

A

dd

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

to insert before the cursor in vim you type

A

i

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

What command is the command used to quit vim without saving changes?

A

:q!

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

To put back text that just been deleted type

A

p

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

To replace the character under the cursor in vim type _ and then the character you want to have there

A

r

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

To undo all changes on a vim line vim type

A

U

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

What key is used to switch in between Insert and Normal/command modes in vim?

A

ESC

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

What command is used to undo the last action in vim?

A

u

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

What is the commands used to save the changes and quit in vim?

A

:wq

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