Moving the cursor up and down the screen
You already know how to move the cursor up and down; however, this can be a slow process if you have a large file that you want to move through quickly. To speed this process up, vi offers several commands that can jump the cursor up or down many lines at a time.
In Command Mode, use the following commands:
- Command
- Moves the cursor:
- H
- To the upper left hand corner of the screen. H stands for High and it moves the cursor as high on the screen as it can go.
- L
- To the bottom of the screen. L (uppercase) stands for Low.
- M
- To the middle of the screen. M stands for Middle. Experiment with these commands to see how they move the cursor.