Vim enables moving the cursor to different positions by accepting different references. For programming tasks, often compile/runtime errors occur and compiler return errors are noticed with line numbers. In such cases, we need to move the cursor immediately to the error line referenced by the line number. To move to a line referenced by a line number, use: line_number. For example, to move to line 50 use :
Essentially, we can also perform some actions using the corresponding commands:
•Move cursor to beginning of line - 0
•Move cursor to end of line - $
•Move cursor to beginning of next line - +
•Move cursor to end of file - G
Scrolling page by page is very useful while dealing with large files. To do so, use Ctrl+f for forward scroll and Ctrl+b for backward scroll.
