Join David D. Levine for an in-depth discussion in this video Using vi in a terminal emulator window, part of Learning vi.
…When vi was originally written, a terminal was a piece of hardware.…It had a fixed number of characters, typically 80 characters across and 24 or…25 lines down.…And you couldn't just change it.…So vi was written with the idea that its terminal was not going to…change around it.…But in modern Unix systems, you're almost always going to be using vi…in a terminal emulator window, like the one you see here.…There are a few special considerations when you…are using vi in a terminal emulator.…So, let's edit, just for an example, the Purloined Letter file that we have here.…
So, here we are in vi.…And vi thinks it's running in a terminal that's 95 characters across and…24 lines down.…Something that you can do with a terminal emulator that you…can't do with a physical terminal, is you can scroll it.…If you grab the scroll bar, or…if you use the scroll wheel on your mouse, you can actually scroll vi out of view.…Now, vi doesn't know that it's out of view.…One thing that you can do if you find yourself in this situation, is,…
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.