Vim - navigating the file by the lines

0 - go to the beginning of the line
Shift+6 or ^ - go to the first non-blank character in line
Shift+4 or $ - go to the end of the line
3$ - go the the end to the next 3rd line

gg - jump to the first line
G - jump to the last line
25gg or 25G - go to 25th line
50% - go to the middle of the file
vim +25 file.txt - go to the line 25 at opening the file

You can also use Line mode to jump to a specific line as well:
:1 and hit <Enter> - jump to the first line
:25 and hit <Enter> - jump to the line 25
:$ and hit <Enter> - jump to the last line without knowing the total number of lines in the file

If you are familiar with Regular expressions you might notice reusing the symbols ^ - beginning and $ - the end

If you want to know how many lines are in the file press:
Ctrl+g
and check the status line at the bottom
To get more information like character count and word count, press:
g Ctrl+g

In Line mode:
:set ruler
and hit <Enter>
Set the ruler in the status bar at the bottom

To turn off the ruler use:
:set noruler
and hit <Enter>

To toggle ruler on/off:
:set ruler!
and hit <Enter>