O'Reilly logo

Practical UNIX by Steve Moritsugu - DTR Business Systems

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

Tips to Help You Use vi

This section covers the third group of vi commands to learn. It includes the standard UNIX command to spell check a text file, which is very crude as you will see. It includes a procedure on how to format a paragraph if some lines are too short or too long. It covers how to recover your changes if vi terminates before you save your work. The last tip shows how to invoke vi in read-only mode.

Restoring the Whole Line Using the U Command

In vi Command mode, capital U will undo all changes on the current line since you moved to it. After you leave a line, you lose the ability to restore it to its original state.

Using spell to Find Misspelled Word

Standard UNIX has only minimal spell-checking capability. The following steps ...

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