Accessing Multiple Files
Command | Action |
---|---|
:e
file
|
Edit another file; current file becomes alternate. |
:e!
| Restore last saved version of current file. |
:e+
file
| Begin editing at end of new file. |
:e+
n
file
| Open new file at line n. |
:e#
| Open to previous position in alternate file. |
:ta
tag
|
Edit file containing tag at the location of the tag. |
:n
| Edit next file. |
:n!
|
Force next file into buffer (don’t save changes to current file). |
:n
files
| Specify new list of files. |
:args
| Display multiple files to be edited. |
:rew
| Rewind list of multiple files to top. |
Get Linux in a Nutshell, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.