Basics Flashcards

1
Q

Save and quit

A

ZZ

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

Revert to last saved version

A

:e!

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

Quit and don’t save

A

:q!

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

Left one space

A

h

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

Down one line

A

j

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

Up one line

A

k

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

Right one space

A

l

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

Display line numbers

A

:set nu

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

Don’t display line numbers

A

:set nu!

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

Insert space at 10 chars from right margin

A

:set wm=10

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

Beginning of line

A

0

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

End of line

A

$

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

Move forward by word, counting symbols

A

w

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

Move forward by word, not counting symbols

A

W

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

Move backward by word, counting symbols

A

b

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

Move backward by word, not counting symbols

A

B

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

Change to the end of the word

A

cw

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

Change back 2 words

A

c2b

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

Change to the end of the line

A

c$

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

Change to the beginning of the line

A

c0

21
Q

Replace one character

A

r

22
Q

Go into overstrike mode

A

R

23
Q

Change entire line

A

S

24
Q

Change 3 entire lines

A

3S

25
Q

Chase case of character under the cursor

A

~

26
Q

Change the case of 5 characters

A

5~

27
Q

Delete word

A

dw

28
Q

Delete from cursor to the end of the line

A

D

29
Q

Delete the character under the cursor

A

x

30
Q

Undo last command

A

u

31
Q

Restore line before any changes

A

U

32
Q

Insert

A

i

33
Q

Append

A

a

34
Q

Append text to end of current line

A

A

35
Q

Insert text at the beginning of the current line.

A

I

36
Q

Delete character at cursor and substitute text.

A

s

37
Q

Delete line and substitute text.

A

S

38
Q

Open blank line below cursor for text

A

o

39
Q

Open blank line above cursor for text

A

O

40
Q

Join current line with line below

A

J

41
Q

To first character of next line

A

+

42
Q

To first character of previous line

A

-

43
Q

To end of word

A

e or E

44
Q

Repeat last action

A

.

45
Q

Transpose two letters

A

xp

46
Q

Put last deleted thing into the buffer after the cursor

A

p

47
Q

Put last deleted thing into the buffer before the cursor

A

P

48
Q

Copy word to buffer

A

yw

49
Q

Copy line to buffer

A

yy or Y