Re: How to open multiple files in split windows?

2007-01-05 Thread Charles E Campbell Jr

Peng Yu wrote:


gvim a b

The above command will open a and b. But only one file will be show at
one time. How to show them in to split windows?


Tim already showed how to open the two files in split windows by 
modifying the command above.


However, if one has already typed  gvim a b and then wants them all in 
separate split windows:


 :sba

will do the trick.  This produces horizontally split windows.  If you 
want vertically split ones:


 :vert sba

is what you want.

Regards,
Chip Campbell



How to open multiple files in split windows?

2007-01-04 Thread Peng Yu

Hi,

gvim a b

The above command will open a and b. But only one file will be show at
one time. How to show them in to split windows?

Thanks,
Peng


Re: How to open multiple files in split windows?

2007-01-04 Thread Tim Chase

gvim a b

The above command will open a and b. But only one file will be show at
one time. How to show them in to split windows?



gvim -o a b

or, if you only want 3 windows, for N files (where N3), you can use

gvim -o 3 a b c d e f g h


More info at

:help -o

-tim