vim Flashcards

1
Q

h

A

move left 1 character

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

l

A

move cursor right 1 character

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

j

A

move cursor down 1 line

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

k

A

move the cursor up one line

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

w

A

move cursor forward one word to front of next word

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

e

A

move cursor to end of current word

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

b

A

move cursor backward one word

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

move cursors to the beginning of the line

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

$

A

move cursor to the end of the line

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

gg

A

move cursor to the files first line

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

G

A

move cursor to files last lime

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

nG

A

move cursor to file line number n

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

Ctrl + B

A

scroll up almost 1 screen

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

Ctrl + F

A

scroll down almost 1 screen

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

Ctrl + U

A

scroll up half of screen

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

Ctrl + D

A

scroll down half of screen

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

Ctrl + Y

A

scroll up one line

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

Ctrl + E

A

scroll down one line

19
Q

Insert Mode

A

edit or entry mode

20
Q

Ex Mode

A

colon commands

21
Q

command mode

A

normal mode

22
Q

a

A

insert text after cursor

23
Q

A

A

insert text at end of text line

24
Q

dd

A

delete current line

25
dw
delete current word
26
i
insert text before cursor
27
l
insert text before beginning of text line
28
o
open new text line below cursor
29
O
open new text line above cursor and move into insert mode
30
p
paste copied text after cursor
31
P
past copied (yanked) text before cursor
32
yw
yank (copy) current word
33
yy
yank (copy) current line
34
:!
execute shell command and display results. don't quit
35
:r!
execute shell command and include the results in editor buffer area
36
:r
read file contents and include them in buffer area
37
:x
write buffer to file and quit
38
:wq
write buffer to file and quit editor
39
:wq!
write buffer
40
:w
write to buffer file and stay in editor
41
:w!
write to buffer file and stay in editor (overrides protection)
42
:q
quit editor without writing buffer to file
43
:q!
quit editor without writing buffer to file
44
ZZ
write buffer to file and quit editor