Vim Recall繁體中文

Go to the last line

G

Example

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

Move to the final line in the buffer.

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

Start in Normal mode.

Details & Vim help

Example replayed in Vim

Move to the final line in the buffer.

Without a count, G goes to the last line. A count such as 20G selects a numbered line instead. The landing column follows startofline.