Next: Inserting text Up: Using the vi Previous: Concepts

Starting vi

The best way to understand these concepts is to actually fire up vi and edit a file. In the example ``screens'' below, we're only going to show a few lines of text, as if the screen was only six lines high (instead of twenty-five).

The syntax for vi is

filename
where filename is the name of the file that you wish to edit.

Start up vi by typing

/home/larry#vi test
which will edit the file test. You should see something like

The column of ``~'' characters indicates that you are the end of the file.


abraham@iesd.auc.dk