Thursday, February 24, 2011

Re: Automatically open new files in tabs

On 25/02/11 7:02 AM, Matt wrote:
> How can Vim be setup so that all new files edited will open in their
> own tab?
>
> I know I can open multiple files from the command line, each in their
> own tab with:
>
> $ vim -p aaa.txt bbb.txt ccc.txt
>
> And if I have multiple files open in buffers I can put them each into
> a tab with:
>
> :tab ball
>
> What is desired is that every time a new file is opened (after the
> initial one) that it automatically opens in a tab.
> As if ":tab ball" is done after every file open. Is this possible?

Just use :tab when you're opening your files. So you :tabe instead of :e
(or :tab e), or move to the next file in the arg list with :tab n etc.,
etc..

You can also move a window (if you have multiple open at once) to its
own tab page by doing CTRL-W T (capital T).

:help :tab
:help :tabe
:help CTRL-W_T

Is that what you're after, or are you opening your files differently or
something? There are other possibilities....

Ben.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment