From the course: Learning Vim

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Screen movement

Screen movement - vi Tutorial

From the course: Learning Vim

Start my 1-month free trial

Screen movement

- [Instructor] Let's open sherlock.txt, vim sherlock.txt. If you'd like to move to the end of the file, you can use uppercase G, shift + G. To move to the beginning of the file, hit lowercase G twice, gg. In other cases, you'd like to quickly scan the text. Don't move your hands to the page up, page down keys. Leave them at the typing position and type control + F. This will move a page forward and will keep the last line from the previous page visible for context. Since F is for forward, how can we move backward half a page? You guessed it, control + B. Using uppercase G, gg, control + F, and control + B, you can quickly navigate in the text.

Contents