Join David D. Levine for an in-depth discussion in this video Scrolling the text, part of Learning vi.
…vi was originally written on hardware terminals before the concept of…a scroll bar existed.…But I'm going to use the term scrolling to describe these commands,…all of which use the Ctrl key.…You can use Ctrl+e and Ctrl+y to scroll the screen up and down by one line.…e is short for expose,…because you're exposing an additional line at the bottom of the screen.…y, I have no idea why it's called that.…You can use Ctrl+d and u to scroll down or up by half a screen full.…And you can use Ctrl+f and Ctrl+b to scroll forward and…back by a full screen full.…
Let me demonstrate those.…So let's go to our Purloined Letter file.…So here, I can do Ctrl+e to expose another line.…e e e, that's Ctrl+e, Ctrl+e, Ctrl+e.…Or I can do Ctrl+y, Ctrl+y,…Ctrl+y to scroll by a single line in the other direction.…When you use these Ctrl keys, the cursor remains exactly where it is.…w w w.…So I can do Ctrl+y, Ctrl+y, Ctrl+y, Ctrl+e, Ctrl+e, Ctrl+e, and…the cursor remains where it is in the text.…
However, if the cursor bumps into the edge of the screen.…
AuthorDavid D. Levine
- Entering and leaving vi
- Understanding the Command, Insert, and Colon modes
- Moving around in files
- Editing text
- Moving content with delete, yank, and put
- Searching with regular expressions
- Customizing vi
- Filtering text through shell commands
Skill Level Beginner
1. Exploring vi
What is vi?2m 26s
2. Getting Started with vi
3. Moving Around within a File
4. Basic Text Editing
5. Undo, Repeat, Yank, and Put
6. Search and Replace
7. Advanced Editing Features
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.