Learning to use ViM step by step. This time how to jump in current opened file:

Jump to the beginning of the file, press gg:

gg

To jump to line 42 in the current open file, press 42G:

42G

Jump to the end of file, press the G key:

G

These 3 commands work only in the visual mode. In case it does not work press the ESC key first and then the command:

ESC gg