G
The
Motion
The G command in Vim
Motion
eof/goto line
Go to line [count]. Without a count, jumps to the last line. With a count, jumps to that line number. Lands on the first non-blank character.
Examples
G(last line)1G or gg (first line)50G(line 50)dG(delete to end of file)
Reference
Learn every Vim command visually — right in your browser.
Add Vim What? to Chrome — FreeAlso on Firefox.
Related motions