[Chapter 8] 8.5 Accessing Multiple Files
Author: Daniel Gilly & the Staff of O'Reilly & Associates
Date: 1998-08-06T21:59:56Z

#

| Chapter 8 The Vi Editor |

## 8.5 Accessing Multiple Files

:e `file` | Edit another `file`; current file becomes alternate.
:e! | Restore last saved version of current file.
:e + `file` | Begin editing at end of `file`.
:e +`n` `file` | Open `file` at line `n`.
:e # | Open to previous position in alternate file.
:ta `tag` | Edit file at location `tag`.
:n | Edit next file.
:n! | Forces next file.
:n `files` | Specify new list of `files`.
CTRL-G | Show current file and line number.
:args | Display multiple files to be edited.
:rew | Rewind list of multiple files to top.

8.4 Saving and Exiting |  | 8.6 Interacting with UNIX