Accessing Multiple Files
Command | Action |
|---|---|
:e file | Edit another file; current file becomes alternate. |
:e! | Return to version of current file at time of last write. |
:e + file | Begin editing at end of file. |
:e +num file | Open file at line num. |
:e # | Open to previous position in alternate file. |
:ta tag | Edit file at location tag. |
:n | Edit next file in the list of files. |
:n! | Force next file. |
:n files | Specify new list of files. |
:rewind | Edit first file in the list. |
Ctrl-G | Show current file and line number. |
:args | Display list of files to be edited. |
:prev | Edit previous file in the list of files. |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access