As an FYI, it's easier to do this in vim than what you've typed.  'vim
file1 file2 file3' will open the 3 files listed, but so will 'vim
file*'.  Once in vim, ':buffers' will list all of the files you have
open (with a '%a" next to the one you're currently viewing).  Each
buffer has a number beside it.  To switch between buffers, you can use
':bn' for the next buffer, ':bp' for the previous buffer, or ':b3' to
access the file in buffer 3 directly (obviously 3 can be replaced with
any number).  To close the current file use ':bd' (buffer delete).  To
close a file you don't have open use ':bd3' (for the file in buffer
3).

Hope this helps!

On Aug 6, 4:42 am, genxtech <[email protected]> wrote:
> Somebody requested that I post what I figured out ... so here is a
> little mini tutorial on what I found.
>
> From the command line if you type: 'vi file1 file2' you will see vi
> brought up, and you will see the contents of 'file1'.  This can be
> done with as many files as you want.
>
> You can go back and forth between those two files by typing: ':prev'
> or ':next' in command mode.
>
> If you forget which files you have open, or which file you are
> currently looking at, you can type ':args' in command mode. At the
> bottom of the screen a message will be displayed that reads something
> like:
>   '[file1] file2'
> The file name that is in between the [ ] is the file that you are
> currently looking at.
>
> If you want to change the files that you are working on so that you
> only have file1, then you just type in: ':args file1' in command
> mode.  Just like from the command line, you can have as many files as
> you want after args ...
>
> If anybody has any questions please feel free to let me know.

-- 
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup

Reply via email to