Line Ranges
Many of the commands specified next can be applied to a range of lines, rather than the whole file. To specify a line range;
Get into command mode.
Type a colon.
Type a start line, an optional comma, and a stop line.
This chapter is broken up into the following sections:
Title of the Section | What It Really Means |
---|---|
Just Enough to Get By | Quick start for beginners. |
Starting and Stopping vi | What it sounds like. |
Position within a File | Scrolling and motion. |
Searching and Replacing | Also includes pattern matching examples. |
Adding and Deleting Text | Invoking edit mode, also deleting. |
Yanking and Putting | Not unlike copy & paste. |
Shell Interaction | Shell functions available in an edit session. |
Get Linux® Desk Reference, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.