vim -p *.c BUT from within a running vim

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

vim -p *.c BUT from within a running vim

Samuel Wright
Hi Guys,

Basic question for you here.
I can open a load of files in tabs in vim by calling
  vim -p *.c

for example. How can I achieve the same result from within a running vim?

Thanks
S
Reply | Threaded
Open this post in threaded view
|

Re: vim -p *.c BUT from within a running vim

Wolfgang Schmidt
Samuel Wright wrote:

> Hi Guys,
>
> Basic question for you here.
> I can open a load of files in tabs in vim by calling
>  vim -p *.c
>
> for example. How can I achieve the same result from within a running vim?
>
> Thanks
> S

    Hi,


you could do

:args *.c
:argdo :tabe

:help args
:help argdo
:help :tabe

Cheers,

    Wolfgang