Vim Examples: Navigation

Vim Examples: Navigation

Last updated:
Table of Contents

WIP Alert This is a work in progress. Current information is correct but more content may be added in the future.

Hit ESC to enter COMMAND MODE

Go to specific line

On COMMAND MODE hit XXgg where XX is the line number you want to go to:

  • 42gg moves cursor to line 42

  • 2gg moves cursor to line 2

Go to the bottom/end of file

On COMMAND MODE hit G (capital g).

Go to the top/beginning of the file

On COMMAND MODE hit gg.