3.12.8 Editing another file


Next: 3.12.9 Including other files Up: 3.12 Using the vi Previous: 3.12.7 Saving files and

  To edit another file, use the :e command. For example, to stop editing test, and edit the file foo instead, use the command

If you use :e without saving the file first, you’ll get the error message

which simply means that vi doesn’t want to edit another file until you save the first one. At this point, you can use :w to save the original file, and then use :e, or you can use the command

The « ! » tells vi that you really mean it—edit the new file without saving changes to the first.


Next: 3.12.9 Including other files Up: 3.12 Using the vi Previous: 3.12.7 Saving files and

Matt Welsh
mdw@sunsite.unc.edu

READ  Installing dict - An On-Line Dictionary LG #63