To move to the end of a file in Vim, you must first ensure you are in Normal Mode by pressing Esc. The most common command is Shift + G (or simply G), which moves the cursor to the first character of the last line.
If you need the cursor at the very end of the last line, you can use one of these variations:
]]: Moves the cursor to the end of the file.Ctrl + End: Moves the cursor to the end of the file (if supported by your terminal).:$: A command-line approach to jump to the end.G + A: Moves to the end of the file and immediately enters Insert Mode for appending text.