In Vim, to move to the end of the current line, you can use the following command:
Command:
$
Explanation:
Press $ in normal mode (press Esc to make sure you’re in normal mode). This will move the cursor to the last character of the current line.
If you want to move to the end of the next line, use:
j$
This moves the cursor to the end of the next line while still moving downward.