Re: Vi questions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux