Replacing Text

Enter r to replace one character. Enter the new desired character. vi will then be ready for a new command. Do not press Esc.

Enter R to go into Replacement mode. Now anything you type will replace the current text. Press Esc to end this mode.

Get Practical UNIX 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.