Starting vi and Dabbling with It

Before you go running off to use vi, understand that it has two modes (both of which look pretty much like Figure 4.11):

  • Input mode (sometimes called insert mode), in which the keys you press actually show up in the file that you’re editing. You use this mode to add or change text.

  • Command mode, in which every keystroke is interpreted as a command. You use this mode to do everything except enter text.

    Figure 4.11. The vi editor inundates you with tons of onscreen help and advice, as shown here. Well, documentation is available, but the vi interface itself isn’t really helpful at all!

What’s ...

Get Unix Third Edition: Visual Quickstart Guide 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.