How do I search for a string in Unix vi editor?

How do I search for a string in Unix vi editor?
Answer
To find a character string, type / followed by the string you want to search for, and then press Return. vi positions the cursor at the next occurrence of the string. For example, to find the string “meta,” type /meta followed by Return. Type n to go to the next occurrence of the string.
 

Tìm kiếm

Back
Top