Chapter 3. Vim Editor

Normal Mode (1) – Move Cursor

Normal Mode (1) – Move Cursor
Tag:

In order to effectively move your cursor, many ways of moving it are available in Vim. Here are the most important ones.

Arrows

Using arrows on your keyboard is the most basic way to move your cursor. In the Normal mode, you can also use the k, j, l, and h keys. By using these keys, you don't need to move your fingers much to move the cursor.

or k : up by one line

or j : down by one line

or h : left by one character

or l : right by one character

Jump to a certain location

gg : beginning of the first line

G : beginning of the last line

:n : beginning of line n

^ : beginning of the current line

$ : end of the current line

Change page

Ctrl + f : move to the next page

Ctrl + b : move to the previous page

IdeaTips: Moving the cursor in Insert mode

In Insert mode, you can use only arrow keys for moving your cursor as other key inputs are recognized as text input.

In order to effectively move your cursor, many ways of moving it are available in Vim. Here are the most important ones.

Arrows

Using arrows on your keyboard is the most basic way to move your cursor. In the Normal mode, you can also use the k, j, l, and h keys. By using these keys, you don't need to move your fingers much to move the cursor.

or k : up by one line

or j : down by one line

or h : left by one character

or l : right by one character

Jump to a certain location

gg : beginning of the first line

G : beginning of the last line

:n : beginning of line n

^ : beginning of the current line

$ : end of the current line

Change page

Ctrl + f : move to the next page

Ctrl + b : move to the previous page

IdeaTips: Moving the cursor in Insert mode

In Insert mode, you can use only arrow keys for moving your cursor as other key inputs are recognized as text input.

Tag: