Go to the first line
gg
Example
Normal 0 / 1Normal 1 / 1one two three
four five six
seven eight nineCursor on line 3, column 5one two three
four five six
seven eight nineCursor on line 1, column 1Move to the first line in the buffer.
Move to the first line in the buffer
Before & after
one two three
four five six
seven eight nineCursor on line 3, column 5one two three
four five six
seven eight nineCursor on line 1, column 1Start 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.