Vim Cheat Sheet For Beginners

By admin ·
1

Inserting text

Enter insert mode:

i

In insert mode, you can type and insert text as you are used to with most other text editors.

Insert text after current character:

a
2

Exit insert mode and return to command mode


3

Navigation

Move to the beginning of the document:

gg

Move to the end of the document:

G

Move to the top of the screen:

H

Move to the bottom of the screen:

B

Move to the middle of the screen:

M

Move one full screen forwards:

 f

Move one full screen backwards:

 b

Move one half screen forwards:

 d

Move on half screen backwards:

 u

Move to the beginning of the current line:

0

Move to the end of the current line:

$
4

Text manipulation

Delete character forward:

x

Delete character backward:

X

Delete entire line of text:

dd

Delete n lines of text (n is any positive integer):

n dd

To change the current word:

cw

To change the current letter:

cl
5

Inserting text

Enter insert mode:

i

In insert mode, you can type and insert text as you are used to with most other text editors.

Insert text after current character:

a
6

Exit insert mode and return to command mode


7

Navigation

Move to the beginning of the document:

gg

Move to the end of the document:

G

Move to the top of the screen:

H

Move to the bottom of the screen:

B

Move to the middle of the screen:

M

Move one full screen forwards:

 f

Move one full screen backwards:

 b

Move one half screen forwards:

 d

Move on half screen backwards:

 u

Move to the beginning of the current line:

0

Move to the end of the current line:

$
8

Text manipulation

Delete character forward:

x

Delete character backward:

X

Delete entire line of text:

dd

Delete n lines of text (n is any positive integer):

n dd

To change the current word:

cw

To change the current letter:

cl
9

Inserting text

Enter insert mode:

i

In insert mode, you can type and insert text as you are used to with most other text editors.

Insert text after current character:

a
10

Exit insert mode and return to command mode


11

Navigation

Move to the beginning of the document:

gg

Move to the end of the document:

G

Move to the top of the screen:

H

Move to the bottom of the screen:

B

Move to the middle of the screen:

M

Move one full screen forwards:

 f

Move one full screen backwards:

 b

Move one half screen forwards:

 d

Move on half screen backwards:

 u

Move to the beginning of the current line:

0

Move to the end of the current line:

$
12

Text manipulation

Delete character forward:

x

Delete character backward:

X

Delete entire line of text:

dd

Delete n lines of text (n is any positive integer):

n dd

To change the current word:

cw

To change the current letter:

cl
13

Inserting text

Enter insert mode:

i

In insert mode, you can type and insert text as you are used to with most other text editors.

Insert text after current character:

a
14

Exit insert mode and return to command mode


15

Navigation

Move to the beginning of the document:

gg

Move to the end of the document:

G

Move to the top of the screen:

H

Move to the bottom of the screen:

B

Move to the middle of the screen:

M

Move one full screen forwards:

 f

Move one full screen backwards:

 b

Move one half screen forwards:

 d

Move on half screen backwards:

 u

Move to the beginning of the current line:

0

Move to the end of the current line:

$
16

Text manipulation

Delete character forward:

x

Delete character backward:

X

Delete entire line of text:

dd

Delete n lines of text (n is any positive integer):

n dd

To change the current word:

cw

To change the current letter:

cl
17

Inserting text

Enter insert mode:

i

In insert mode, you can type and insert text as you are used to with most other text editors.

Insert text after current character:

a
18

Inserting text

Enter insert mode:

i

In insert mode, you can type and insert text as you are used to with most other text editors.

Insert text after current character:

a
19

Inserting text

20

Exit insert mode and return to command mode


21

Exit insert mode and return to command mode


22

Exit insert mode and return to command mode

23

Navigation

Move to the beginning of the document:

gg

Move to the end of the document:

G

Move to the top of the screen:

H

Move to the bottom of the screen:

B

Move to the middle of the screen:

M

Move one full screen forwards:

 f

Move one full screen backwards:

 b

Move one half screen forwards:

 d

Move on half screen backwards:

 u

Move to the beginning of the current line:

0

Move to the end of the current line:

$
24

Navigation

Move to the beginning of the document:

gg

Move to the end of the document:

G

Move to the top of the screen:

H

Move to the bottom of the screen:

B

Move to the middle of the screen:

M

Move one full screen forwards:

 f

Move one full screen backwards:

 b

Move one half screen forwards:

 d

Move on half screen backwards:

 u

Move to the beginning of the current line:

0

Move to the end of the current line:

$
25

Navigation

26

Text manipulation

Delete character forward:

x

Delete character backward:

X

Delete entire line of text:

dd

Delete n lines of text (n is any positive integer):

n dd

To change the current word:

cw

To change the current letter:

cl
27

Text manipulation

Delete character forward:

x

Delete character backward:

X

Delete entire line of text:

dd

Delete n lines of text (n is any positive integer):

n dd

To change the current word:

cw

To change the current letter:

cl
28

Text manipulation