Vim Recall繁體中文

Go to the first line

gg

Example

Normal 0 / 1
one two three
four five six
seven eight nine
Cursor on line 3, column 5

Move to the first line in the buffer.

Before & after
Before
one two three
four five six
seven eight nine
Cursor on line 3, column 5
After
one two three
four five six
seven eight nine
Cursor on line 1, column 1

Start in Normal mode.

Details & Vim help

Example replayed in Vim

Move to the first line in the buffer.

Without a count, gg goes to line one. With a count, such as 20gg, it moves to that numbered line. The landing column follows startofline.