Re: split window many times and open many files in each at once

2009-09-29 Thread Tony Mechelynck
On 15/09/09 01:54, Hari Krishna Dara wrote: [...] > Sorry, it should be -nargs, not -args. The completion allows you to > complete filenames, by pressing, though won't help much with the > wildcards. BTW, I don't actually know if wildcards can be used in > :args. > According to the help they can:

Re: split window many times and open many files in each at once

2009-09-15 Thread Luc Hermitte
Hello, "Daniel Fetchinson" wrote : > This in itself is pretty cool, but now I'd like to make something > even cooler by hooking up a custom function to do this. This is > where I'm currently failing. What I'd like to see is when I type > > :msplit filename* If I may, I provide a plugin that a

Re: split window many times and open many files in each at once

2009-09-14 Thread Tim Chase
>> The :all ends up giving me all the .sql *and all the .py files* >> when all I really want is all the .sql files. > > That's why everyone else in the thread has been suggesting using :args > instead of :argadd ;-) > > Of course, :args is worse if you're the sort of person who actually > uses

Re: split window many times and open many files in each at once

2009-09-14 Thread Hari Krishna Dara
On Mon, Sep 14, 2009 at 4:45 PM, Daniel Fetchinson wrote: >> >> Try this (untested): >> >> function! Msplit(...) >>   if a:0 > 0 >>     exec args join(a:000, ' ') >>   endif >>   all >> endfunction >> >> command! -args=* -complete=file Msplit :call Msplit() > > This, in its current form, gives an

Re: split window many times and open many files in each at once

2009-09-14 Thread Matt Wozniski
On Mon, Sep 14, 2009 at 6:27 PM, Tim Chase wrote: > >> :msplit filename* >> >> then this should be equivalent to >> >> :args filename* >> :all > > The problem I have with :all is that it opens *all* the > arguments.  I frequently find myself in the position where I've > started vim with something

Re: split window many times and open many files in each at once

2009-09-14 Thread Gary Johnson
On 2009-09-14, Daniel Fetchinson wrote: > >> >>> I'm regularly doing :split filename1 followed by :split filename2 > >> >>> followed by :split filename3 and was trying to do :split filename* but > >> >>> this didn't work. The goal would be to split the window in as many > >> >>> pieces as the numb

Re: split window many times and open many files in each at once

2009-09-14 Thread Daniel Fetchinson
On 9/14/09, Daniel Fetchinson wrote: >>> >>> I'm regularly doing :split filename1 followed by :split filename2 >>> >>> followed by :split filename3 and was trying to do :split filename* >>> >>> but >>> >>> this didn't work. The goal would be to split the window in as many >>> >>> pieces as the nu

Re: split window many times and open many files in each at once

2009-09-14 Thread Daniel Fetchinson
>> :msplit filename* >> >> then this should be equivalent to >> >> :args filename* >> :all > > The problem I have with :all is that it opens *all* the > arguments. I frequently find myself in the position where I've > started vim with something like > >vim *.py > > and have all my project's p

Re: split window many times and open many files in each at once

2009-09-14 Thread Daniel Fetchinson
> I'm regularly doing :split filename1 followed by :split filename2 > followed by :split filename3 and was trying to do :split filename* but > this didn't work. The goal would be to split the window in as many > pieces as the number of files that match filename* and have each of >>

Re: split window many times and open many files in each at once

2009-09-14 Thread Daniel Fetchinson
>> >>> I'm regularly doing :split filename1 followed by :split filename2 >> >>> followed by :split filename3 and was trying to do :split filename* but >> >>> this didn't work. The goal would be to split the window in as many >> >>> pieces as the number of files that match filename* and have each o

Re: split window many times and open many files in each at once

2009-09-14 Thread Hari Krishna Dara
On Mon, Sep 14, 2009 at 2:47 PM, Daniel Fetchinson wrote: > I'm regularly doing :split filename1 followed by :split filename2 followed by :split filename3 and was trying to do :split filename* but this didn't work. The goal would be to split the window in as many pieces as the

Re: split window many times and open many files in each at once

2009-09-14 Thread Tim Chase
> :msplit filename* > > then this should be equivalent to > > :args filename* > :all The problem I have with :all is that it opens *all* the arguments. I frequently find myself in the position where I've started vim with something like vim *.py and have all my project's python files ope

Re: split window many times and open many files in each at once

2009-09-14 Thread Gary Johnson
On 2009-09-14, Daniel Fetchinson wrote: > >>> I'm regularly doing :split filename1 followed by :split filename2 > >>> followed by :split filename3 and was trying to do :split filename* but > >>> this didn't work. The goal would be to split the window in as many > >>> pieces as the number of files

Re: split window many times and open many files in each at once

2009-09-14 Thread Daniel Fetchinson
>>> I'm regularly doing :split filename1 followed by :split filename2 >>> followed by :split filename3 and was trying to do :split filename* but >>> this didn't work. The goal would be to split the window in as many >>> pieces as the number of files that match filename* and have each of >>> the ma

Re: split window many times and open many files in each at once

2009-09-13 Thread Daniel Fetchinson
>> I'm regularly doing :split filename1 followed by :split filename2 >> followed by :split filename3 and was trying to do :split filename* but >> this didn't work. The goal would be to split the window in as many >> pieces as the number of files that match filename* and have each of >> the matchin

Re: split window many times and open many files in each at once

2009-09-12 Thread Tim Chase
Gary Johnson wrote: > On 2009-09-12, Daniel Fetchinson wrote: >> Hi vimmers, >> >> I'm regularly doing :split filename1 followed by :split filename2 >> followed by :split filename3 and was trying to do :split filename* but >> this didn't work. The goal would be to split the window in as many >> pi

Re: split window many times and open many files in each at once

2009-09-12 Thread Gary Johnson
On 2009-09-12, Daniel Fetchinson wrote: > Hi vimmers, > > I'm regularly doing :split filename1 followed by :split filename2 > followed by :split filename3 and was trying to do :split filename* but > this didn't work. The goal would be to split the window in as many > pieces as the number of files

split window many times and open many files in each at once

2009-09-12 Thread Daniel Fetchinson
Hi vimmers, I'm regularly doing :split filename1 followed by :split filename2 followed by :split filename3 and was trying to do :split filename* but this didn't work. The goal would be to split the window in as many pieces as the number of files that match filename* and have each of the matching