OSU Computational Physics - Landau Research Group (nacse) -
Next 7.A.2: Making Changes  Up 7: Editing Files  Prev 7.a: Using vi  Contents

Basic

§ 7.A.1: Opening and Moving Around Files with vi


To edit a file, start at the prompt and issue the vi command followed by the name of the file:

(To edit a bunch of files, you enter all their names after vi. Then you use the vi subcommand :n to edit the next file, or :e! to edit the previous file. If you lose track of where you are, use :f to show your current file.)

The vi subcommands to move around are the same as in view. Try these:

Now that you know how to get started and get around in vi, let's actually make a couple of changes.


Next 7.A.2: Making Changes  Up 7: Editing Files  Prev 7.a: Using vi  Contents

Comments and questions to CP-unix@physics.orst.edu.