Navigating to specific lines
We might find ourselves wanting to jump to the very top, very bottom, or to some specific line in a file. Vim provides us with some commands for doing this.
Often you know exactly which line you want. For example: most compilers will tell you which line an error is on if your build fails. With Vim, you can jump directly to the line of interest — say line 10 — by hitting 10G in normal mode.
If you want to jump to the bottom of your file, you can do this by typing G in normal mode.
And if you want to jump back to the top, type gg.
Work through the checklist below — each jump is checked off the moment you make it.