| Command |
What
It Does |
| Control-L
|
Clear
a scrambled screen. Also called refreshing the screen. |
| :r
filename |
Insert
a file at line after cursor |
| :16
r filename |
Insert
file after line 16 |
Some documents
can get quite large, making it difficult to find text in them.
The vi editor
delivers the capability to search and edit text in your documents
using the following commands:
| Command |
What
It Does |
| /string |
Search
forward for string |
| ?string |
Search
backward for string |
| n |
Find
next occurrence of string |
| N |
Find
previous occurrence of string |
| :%s/old/new/g |
Search
and replace globally |