Summary of vi Commands

A summary of the commands you learned in this hour is shown in Table 11.1.

Table 11.1. Advanced vi Commands
Command Meaning
!!command Replace the current line with the output of the specified UNIX command.
!}command Replace the current paragraph with the results of piping it through the specified UNIX command or commands.
( Move backward one sentence.
) Move forward one sentence.
C Change text from the point of the cursor through the end of the line.
c Change text in the specified range—cw changes the following word, whereas c} changes the next paragraph.
e Move to the end of the current word.
^g Show the current line number and other information about the file.
R Replace text from the point of the cursor until Escape is ...

Get Sams Teach Yourself UNIX® in 24 Hours Second Edition 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.