Thursday, February 24, 2011

Re: Automatically open new files in tabs

On 02/24/2011 03:02 PM, 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?
>
> Matt
>

You can use :tabe command or if you want, map :e to :tabe. Or do
you want new tab to open for drag and drop too? gf command?

-Rainyday

--
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