commands Flashcards

1
Q

move left

A

h

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

move up

A

k

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

move down

A

j

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

move right

A

l

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

quit and save

A

:wq

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

delete character under cursor

A

x

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

insert text at cursor

A

i

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

insert append at end of line

A

A

capital a

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

undo last

A

u

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

delete from cursor to end of line

A

d$

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

goto beginning of the line to first non-blank char

A

shift 6

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

goto absolute beginning of line

A

0

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

delete from cursor to end of the word

the cursor must be on the first letter of the word to delete the entire word

A

de

delete to end of the current word

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

delete operator

A

d

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

delete from the cursor to the start character of the next word, not including the start character

A

dw

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

what do numbers before a motion command or operator mean, ie 3w

A

how many times the motion repeats

3w is 3 words forward

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

2w

the exact location of the cursor

A

first character 2 words ahead

18
Q

e

A

cursor at end of each word ahead

19
Q

p

A

put paste clipboard after the cursor

20
Q

P

A

put paste before the cursor

21
Q

d2w

A

delete 2 words from the cursor to the start of third-word character not including the third word character

22
Q

delete entire line and put in register

A

dd

23
Q

delete cut 2 lines

A

2dd

24
Q

undo the last command

A

u

25
Q

fix undo the whole line

A

U

26
Q

replace one character without going into insert mode

A

r then the letter

27
Q

change letters from the cursor to end of word

A

ce - this will put you also into insert

28
Q

change from the cursor to the end of the line

A

c$

29
Q

Retrace your movements in file in backwards.

A

ctrl o

30
Q

Retrace your movements in file in forward

A

ctrl i

31
Q

change from the cursor to end of 3rd word

A

c3e

32
Q

move to the bottom of the file

A

G

33
Q

move to the start of the file

A

gg

34
Q

go to a specific line in the document

A

line number G

399G

35
Q

Search and replace word(s)/errr

/

A

/search enter

36
Q

move the screen to the top middle and bottom relative to the cursor. the cursor stays put on the same line number

A

zt, zz, zb

37
Q

visual block mode select and insert

A

ctrl-v I

38
Q

visual block mode select and change

all commits to squash

A

ctrl-v c

39
Q

visual block mode select and delete

A

ctrl-v d

40
Q

visual block select to end of each line

A

ctrl-v $ j

41
Q
A