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
Q

dw

A

delete current word

26
Q

i

A

insert text before cursor

27
Q

l

A

insert text before beginning of text line

28
Q

o

A

open new text line below cursor

29
Q

O

A

open new text line above cursor and move into insert mode

30
Q

p

A

paste copied text after cursor

31
Q

P

A

past copied (yanked) text before cursor

32
Q

yw

A

yank (copy) current word

33
Q

yy

A

yank (copy) current line

34
Q

:!

A

execute shell command and display results. don’t quit

35
Q

:r!

A

execute shell command and include the results in editor buffer area

36
Q

:r

A

read file contents and include them in buffer area

37
Q

:x

A

write buffer to file and quit

38
Q

:wq

A

write buffer to file and quit editor

39
Q

:wq!

A

write buffer

40
Q

:w

A

write to buffer file and stay in editor

41
Q

:w!

A

write to buffer file and stay in editor (overrides protection)

42
Q

:q

A

quit editor without writing buffer to file

43
Q

:q!

A

quit editor without writing buffer to file

44
Q

ZZ

A

write buffer to file and quit editor