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
- [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.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Navigate using keys: H, J, K, L1m 11s
-
(Locked)
Words, sentences, and paragraphs1m 46s
-
(Locked)
Challenge: Find word19s
-
(Locked)
Solution: Find word31s
-
(Locked)
Regular expressions1m 56s
-
(Locked)
Challenge: Search word8s
-
(Locked)
Solution: Search word14s
-
(Locked)
Screen movement47s
-
Challenge: Move screens5s
-
Solution: Move screens12s
-
(Locked)
Lines1m 40s
-
(Locked)
Challenge: Move lines14s
-
(Locked)
Solution: Move lines16s
-
(Locked)
Current word59s
-
(Locked)
Challenge: Find next instance of word23s
-
(Locked)
Solution: Find next instance of word22s
-
(Locked)
-
-
-
-
-
-