Go to first line in a file in vim?
In command mode (press Esc if you are not sure) you can use:
- gg,
- :1,
- 1G,
- or 1gg.
Type "gg" in command mode. This brings the cursor to the first line.
In command mode (press Esc if you are not sure) you can use:
Type "gg" in command mode. This brings the cursor to the first line.