O'Reilly logo

A Practical Guide to Red Hat® Linux® 8 by Mark G. Sobell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required