commands Flashcards

(41 cards)

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

23
Q

delete cut 2 lines

24
Q

undo the last command

25
fix undo the whole line
U
26
replace one character without going into insert mode
r then the letter
27
change letters from the cursor to end of word
ce - this will put you also into insert
28
change from the cursor to the end of the line
c$
29
Retrace your movements in file in backwards.
ctrl o
30
Retrace your movements in file in forward
ctrl i
31
change from the cursor to end of 3rd word
c3e
32
move to the bottom of the file
G
33
move to the start of the file
gg
34
go to a specific line in the document
line number G 399G
35
Search and replace word(s)/errr /
/search enter
36
move the screen to the top middle and bottom relative to the cursor. the cursor stays put on the same line number
zt, zz, zb
37
visual block mode select and insert
ctrl-v I
38
visual block mode select and change all commits to squash
ctrl-v c
39
visual block mode select and delete
ctrl-v d
40
visual block select to end of each line
ctrl-v $ j
41