Vim Flashcards

1
Q

write and quit (save file and exit)

A

:wq

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

undo

A

u

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

jump forwards to the start of a word

A

w

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

jump forwards to the end of a word

A

e

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

delete (cut) a line

A

d

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

delete (cut) character

A

x

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

jump backwards to the start of a word

A

b

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

repeat last command

A

.

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

delete marked text

A

d

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

switch case

A

~

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

insert before the cursor

A

i

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

insert at the beginning of the line

A

I

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

insert (append) after the cursor

A

a

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

insert (append) at the end of the line

A

A

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

append (open) a new line below the current line

A

o

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

append (open) a new line above the current line

A

O

17
Q

insert (append) at the end of the word

A

ea

18
Q

exit insert mode

A

Esc or Ctrl + c

19
Q

search for pattern

A

/pattern

20
Q

write (save) and quit

A

:wq or :x or ZZ

21
Q

quit and throw away unsaved changes

A

:q! or ZQ