On Dec 8, 3:31 pm, Dennis Benzinger <[email protected]> wrote:
> 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
>
> > Ben
>
> Try this:
>
> :for f in split(glob("*.erb"), '\n') | exec "tabe " . f | endfor
>
> HTH,
> Dennis Benzinger

Well, that does the trick, now to make it 'usable' in daily life : )

By the way I've also discovered these two commands:

:args *.erb   #this sets the argument list and adds the files to the
buffer list then
:tab :sba     #opens a tab for everything in buffer list

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

Reply via email to