Vi questions
Carl Reynolds
redhat-list at hyperbole-software.com
Fri Apr 15 16:33:03 UTC 2005
Aseem Khurana wrote:
>3. how to open more than 1 file simultaneously and switch back and forth between the files in full window mode (not split windows)
>
>
After you open a file in vi type
:e new-file-name
to edit a second file.
Now you can type
:e #
to switch to the other file.
Repeated use of
:e #
will switch back and forth between the two files.
It is also possible to use
:e %
to re-edit the current file
I use this occasionally when I forget to type the full name of a file.
For example, I may type
:e new-file
and what I meant was
:e new-file-name
I can edit new-file-name by typing
:e %-name
Carl.
More information about the redhat-list
mailing list