Chapter Summary
This summary of vim includes all the commands covered in this chapter, plus a few more.
Starting vim
vim filename | Edits filename starting at line1 |
vim +n filename | Edits filename starting at line n |
vim + filename | Edits filename starting at the last line |
vim +/pattern filename | Edits filename starting at the first line containing pattern |
vim –r filename | Recovers filename after a system crash |
vim –R filename | Edits filename readonly |
Moving the Cursor by Units of Measure
You must be in Command mode to use commands that move the cursor by Units of Measure. They are the Units of Measure that you can use in Change, Delete, and Yank commands. Each of these commands can be preceded by a Repeat Factor.
SPACE, l, or RIGHT ARROW | Space to the ... |
Get A Practical Guide to Red Hat® Linux® 8 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.