Vim - movement Flashcards

1
Q

move the cursor 1 word

A

w

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

move the cursor back 1 word

A

b

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

move the cursor to the end of a word

A

e

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

move to the previous end of word

A

ge

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

Move to the end of a line

A

$

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

Move to the first non-blank character of a line

A

^

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

Move to the first character on a line

A

0 or <Home>

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

search forward in the line for a single character ‘x’.

A

fx

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

search forward in the line for a single character ‘x’, but stop 1 character before the searched character.

A

tx

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

search forward in the line for a single character ‘x’, but stop 1 character before the searched character.

A

tx

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

repeat a single character search forwards

A

;

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

repeat a single character search backwards

A

,

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

Abort a single character search

A

f<Esc>

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

match parenthesis

A

%

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

move to line 33

A

33G

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

move to the start of a file

A

1G or gg

17
Q

move to the halfway mark in a file

A

50%

18
Q

move to the first visible line

A

H

19
Q

move to the middle visible line

A

M

20
Q

move to the last visible line

A

L

21
Q

see where you are in a file

A

CTRL-G

22
Q

show line numbers

A

:set number

23
Q

show the ruler

A

:set ruler

24
Q

move the viewing window up half a screen

A

CTRL-u

25
Q

move the viewing window down a screen

A

CTRL-d

26
Q

scroll one line up

A

CTRL-e

27
Q

scroll one line down

A

CTRL-y