Searching and Substituting
Searching for and replacing a character, a string of text, or a string that is matched by a regular expression is a key feature of any editor. The vim editor provides simple commands for searching for a character on the current line. It also provides more complex commands for searching for and optionally substituting for single and multiple occurrences of strings or regular expressions anywhere in the Work buffer.
Searching for a Character
You can search for and move the cursor to the next occurrence of a specified character on the current line by using the Find command. Refer to “Moving the Cursor to a Specific Character” on page 429.
The next two commands are used in the same manner as the Find command. The t command ...
Get A Practical Guide to Red Hat® Linux® 8 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.