Technology TidBits

Answers to various technical questions on php programming, mysql, linux, and many more categories.



How can I search in the vi editor?

Last updated: 09/04/2010

To search down through the document, use /[search string]

So you type "slash" and then the text you want. Hit the n key to move to the next result.

If you use a ? instead of /, you can search up through the document, instead of down.  Note that the search begins where your cursor is.


Other questions in this category:
How do I set Tab stops in VI?
How can I turn on line numbering in Vi?
How can I jump to a line in the vi editor?
How can I remove DOS linebreaks (^M) from my files?
How can I remove leading whitespace in all lines in a file using vi?
How can I delete a large chunk of text using vi?
How can I undo and redo changes in vi?



Powered by KnowledgebasePublisher 1.1
Superb Internet
Content provided by Roberts WebForge, Inc.