Hi pixelterra!

On Di, 08 Dez 2009, pixelterra wrote:

> I would love to do something like this:
> 
> :tabe *.erb
> 
> And have a tab open for every file. The above obviously doesn't work.
> Any alternatives? I know that this opens multiple tabs from command
> line:
> 
> >vim -p *.erb

Try

:com! -nargs=+ Tabe  :tab all 

and then you can use :Tabe *.erb

But if you have many files, this will open at most 'tabpagemx' tabs (by 
default 10) and all left arguments in separate windows in the last 
tabpage. So you could modify the above command to:

:com! -nargs=+ Tabe let &tpm=100 | :tab all | set tpm&

which should work by temporarily setting the tabpagemax option to 100 
and resetting it to the default value afterwards (which may or may not 
be the value, it was before)


regards,
Christian

-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to